#
# Select one of the following three modes of operation.
#
Usermode
# System
# Paranoid
#

#
# Set "Nobody" to the user id for an unprivileged account in "Paranoid" mode.
# This variable must also be set for "System" mode so that a security check
# can be performed.
#
Nobody 100

#
# Set "Systempath" to the path name of the socket path in "System" or
# "Paranoid" mode
#
Systempath "/tmp/.pipesock"

#
# Set "Homeenv" to the name of the environment variable which holds the
# user's home directory, when running in "Usermode"
#
Homeenv "HOME"

#
# Set "Userpath" to the pathname of the socket. It will be relative to
# $HOME unless it is an absolute path name, in which case $HOME will be ignored
#
Userpath ".pipesock"

#
# Choose "Syslog" to log errors and information via the syslog
# facility (as a daemon).
#
Syslog

#
# Set "Socketgroup" to the numeric group ID of the group under which the
# client process will run in System and Paranoid modes
#
Socketgroup 20

#
# Set "Killpipes" if you want the daemon to unlink a pipe when the entry is
# deleted from the daemon's tables. This will keep programs from hanging
# forever on the pipe waiting for input, causing them to return with a
# "not found" error instead. This won't work in paranoid mode, as the daemon
# does not have the privileges required to delete files in the user space.
#
Killpipes

#
# Set "Makepipes" if you want the client to create a pipe if it turns out
# that the given pipe doesn't exist.
#
Makepipes

#
# Set "Waitsecs" and "Waitusecs" to the seconds and microseconds respectively
# of the wait during a select() check of pipes opened for writing by an
# external process. I use Waitsecs=0, Waitusecs=20000
#
Waitsecs 0
Waitusecs 20000

#
# Set "Loopdelay" to the time in microseconds that the daemon sleeps between
# checks of the pipes. I use 20000
#
Loopdelay 20000


#
# Set "Timeout" to the number of seconds a process is allowed to run on a pipe
# before it will be killed (with kill -TERM). If not set the process will be
# allowed to run forever.
#
# THIS OPTION IS NOT YET WORKING. SETTING THE VARIABLE WILL TRY TO TIME OUT
# BUT WILL PROBABLY NOT WORK. SEE THE README "Still to do" SECTION.
#
# Timeout 20

#
# Set "Norootpipes" if you don't want the daemon to watch a pipe and then run a
# process on that pipe as root. In that case, pipe requests submitted by root
# will be run as "Nobody"
#
# Norootpipes

#
# Set "Nosocketperms" if your OS does not restrict connect() to an existing
# socket based on the file permissions of the socket (user must have write
# permission to connect() to a socket). If anybody at all can connect() to
# your socket, we have to hide the socket somewhere. We hide it in a
# directory with the name that the socket would have had.
#
# If you do not set "Nosocketperms" the daemon will check to see if the OS
# is secure, and if it isn't it will tell you so and abort.
#
# Linux v1.2.6 does not restrict connect() by the permissions on the socket.
# I don't know if this will be fixed in later versions.
#
Nosocketperms
