uxstreamsocket - create a unix domain stream socket
uxstreamsocket [options] path program [arguments]
uxstreamsocket creates a unix domain stream socket, binds it to path, and runs program with the remaining arguments.
options is a is a series of getopt or getopt_long style options. See below for more information.
The socket has the name path. If that file already exists it has to be deleted before the socket is created (you can use the -r / --remove-old-socket option for that). Note that deleting the file does not close any old instance of the socket, it will merely make it invisible (this means already connected sockets will stay connected).
On some systems, n is silently limited to 5. On systems supporting SYN cookies, the backlog is irrelevant. The default is 20.
The default is 0622.
Use this if you are sure that no process still listings to an existing unix domain socket, or if you don't care.
`N' may be a whitespace or comma separated list. The default is to move it to 5. Note that moving the socket to file descriptor 2 may disturb the output of error messages.
uxstreamsocket will switch to that group id after the socket has been set up. GID has to be a positive integer.
uxstreamsocket will switch to that user id after the socket has been set up. UID has to be a positive integer.
Usually used together with envuidgid.
After preparing to receive connections, print the local port number to standard output.
This is the default.
The use with an argument shows the long helptext of that option, without an argument it will list all options.
The use with an argument shows the long help for this option, without arguments it shows the long description of all options.
uxstreammsocket sets the environment variables PROTO (to UXSTREAM) and UXSTREAMLOCALPATH (to path).
uxstreamsocket -r /dev/log setuidgid misclog unsyslogd