freebsd startup script
Edward Shabotinsky
lanshark at bsinet.net
Mon Feb 25 12:55:29 PST 2002
Just for some people to help start freeside queue daemon
in freebsd from /usr/local/etc/rc.d
put it in above dir
#! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON="/usr/bin/freeside-queued"
NAME="freeside-queued"
USER="freeside"
N="/usr/local/etc/rc.d/freeside.sh"
test -x $DAEMON || exit 0
case "$1" in
start)
if [ -x $DAEMON ]; then
$DAEMON $USER > /dev/null & && echo -n ' Starting FreeSide job queue
daemon'
fi
;;
stop)
if [ -f /var/run/$NAME.pid ]; then
kill `cat /var/run/$NAME.pid` > /dev/null 2>&1 && echo -n '
Stoping FreeSide job queue daemon'
rm /var/run/$NAME.pid
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
Hope it'll be useful :-)
Edward Shabotinsky
System Engineer
BritesiteINet Inc.
---------------------------------
www.britesite.net
lanshark at bsinet.net
----------------------------------
More information about the freeside-users
mailing list