[NTLUG:Discuss] what is ":bad option"?
m m
llliiilll at hotmail.com
Fri Jul 21 11:39:21 CDT 2000
>From: Steve Baker <sjbaker1 at airmail.net>
>Can you send us the contents of the script file? (Assuming it's not
>too long that is!)
>
here is the script: (I just copy from Qmail-HOWTO) and name it as 'svscan'
and put it in /etc/rc.d/init.d/
#---------beginning of the script ---------------
#!/bin/sh -e
# /etc/rc.d/init.d/svscan : start or stop svscan.
# borrowed from http://Web.InfoAve.Net/~dsill/lwq.html#start-qmail
# modified by Adam McKenna <adam at flounder.net>
case "$1" in
start)
echo -n "Starting djb services: svscan "
env - PATH="/usr/local/bin:$PATH" svscan /service &
echo $! > /var/run/svscan.pid
echo "."
;;
stop)
echo -n "Stopping djb services: svscan "
kill `cat /var/run/svscan.pid`
echo -n "services "
svc -dx /service/*
echo -n " logging "
svc -dx /service/*/log
echo "."
;;
restart|reload|force-reload)
$0 stop
$0 start
;;
*)
echo 'Usage: /etc/rc.d/init.d/svscan {start|stop|restart}'
exit 1
esac
exit 0
#---------------end of script-----------------------------------
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
More information about the Discuss
mailing list