uxdgramsocket - create a unix domain datagram socket
uxdgramsocket [options] path program [arguments]
uxdgramsocket creates a unix domain datagram 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).
Use this if you are sure that no process still listings to an existing unix domain socket, or if you don't care.
The default is 0622.
`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.
uxdgramsocket will switch to that group id after the socket has been set up. GID has to be a positive integer.
uxdgramsocket 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.
uxdgramsocket sets the environment variables PROTO (to UXDGRAM) and UXDGRAMLOCALPATH (to path).
uxdramsocket -r /dev/log setuidgid misclog unsyslogd
unknown.
Uwe Ohse