#
# 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 65534

#
# 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 "Maxpipes" to the largest number of pipes that the daemon will
# watch before refusing to watch any more.
#
Maxpipes 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


#
# Set "Restartfilename" if you want the daemon to write out its list of
# inspected pipes to a file, and then re-read it when the daemon is
# started up. This allows the system to return to its previous state
# if the machine crashes, rather than leaving a bunch of unattended pipes
# in the filesystem. It also provides a convenient startup mechanism
# whereby certain pipes are immediately started up. In that case, it is
# probably not a good idea to attach additional pipes via the client
# program, if you want one set of pipes which are always set up at boot
# time, and another which respond to client requests, then I recommend
# running two daemons, with the various filename options in this configuration
# file set to avoid collisions.
#
# It is probably a bad idea to make "Restartfilename" reside on the /tmp
# disk, as many systems clean that disk during a reboot.
#
# The example below would restart from a file in the HOME directory.
# If run in paranoid mode it should point to a file which can be opened
# and written to by the "nobody" user. If run in system mode, it can go
# anywhere that you think makes sense.
#
# Restartfilename ".runpipe.rc"

