frozenpeas
Technical User
When I am booting, I get an error to the effect of "unexpected error at line 14... stop..."
Is there anything wrong with my startup script (from the SAMS book, Running qmail):
Is there anything wrong with my startup script (from the SAMS book, Running qmail):
Code:
#!/bin/sh
PATH=/var/qmail/bin
export PATH
#Check that qmail is loaded
[ -f /var/qmail/bin/qmail-start ] || exit 0
case "$1" in
start)
echo -n "Starting qmail..."
daemon /var/qmail/rc
stop)
echo -n "Stopping qmail..."
killall qmail-send
restart)
$0 stop
$0 start
*)
echo -n "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0