Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

qmail startup script

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
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):

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top