3 # Starts the SMS Server Tools 3
8 PIDFILE=/var/run/$NAME.pid
13 echo -n "Starting $NAME: "
14 mkdir -p $SPOOL/outgoing
15 mkdir -p $SPOOL/incoming
16 mkdir -p $SPOOL/checked
17 start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -c /etc/smsd.conf && echo "OK" || echo "Failed"
22 echo -n "Stopping $NAME: "
23 start-stop-daemon -K -q -p $PIDFILE && echo "OK" || echo "Failed"
39 echo "Usage: $0 {start|stop|restart}"