freebsd-ports/sysutils/daemontools/files/svscan.sh.sample
Neil Blakey-Milner 38d0ebaebf Add a sample rc file for svscan startup, in partial fulfillment of the
PR.  I'll leave the creation of the directory, whatever it may be, to
the user.

PR:		ports/19191
Submitted by:	Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>
2000-06-22 09:22:15 +00:00

34 lines
699 B
Bash

#!/bin/sh
# Surely advice you to enable some of the below
# control variables and the apropriate ulimit.
# These are only examples.
# Furthermore, you should think about additional
# limits you might need.
# Or, check login.conf(5) for a suitable
# alternative
#
# I really do suggest you use /var/service as your
# service spool directory. Check hier(7) for
# reasons.
# 10 Mb
#MINSEGMENT=10240
# 20 Mb
#MAXSEGMENT=20480
# 10 Mb
#MAXFILESIZE=10240
# 100
#MAXFD=100
# 40
#MAXCHILD=40
# ulimits
#ulimit -d ${MINSEGMENT}
#ulimit -f ${MAXFILESIZE}
#ulimit -m ${MAXSEGMENT}
#ulimit -n ${MAXFD}
#ulimit -s ${MINSEGMENT}
#ulimit -u ${MAXCHILD}
exec /bin/csh -cf '/usr/local/bin/svscan /var/service &'