3 # $NetBSD: spread.sh,v 1.1 2003/02/22 23:37:14 mjl Exp $
8 # To start spread at startup, copy this script to /etc/rc.d and set
9 # spread=YES in /etc/rc.conf.
11 # Addtionally you may set spread_log to a file where to log stuff.
13 if [ -f /etc/rc.subr ]; then
17 rcd_dir=`@DIRNAME@ $0`
21 command="@PREFIX@/sbin/${name}"
22 if [ X"${spread_log}" != "X" ] ; then
23 log=">${spread_log} 2>&1"
27 required_files="@PKG_SYSCONFDIR@/spread.conf"
29 command_args="${log} </dev/null &"
30 start_precmd="spread_precmd"
34 if [ ! -d @RUNTIME_DIR@ ]
37 @CHMOD@ 0750 @RUNTIME_DIR@
38 @CHOWN@ @PKG_USERS@ @RUNTIME_DIR@