board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / smstools3 / S50smsd
blobcd78150883df806efe02ac6e162884943e2f480d
1 #!/bin/sh
3 # Starts the SMS Server Tools 3
6 NAME=smsd
7 DAEMON=/usr/bin/$NAME
8 PIDFILE=/var/run/$NAME.pid
9 SPOOL=/var/spool/sms
11 start()
13 printf "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"
20 stop()
22 printf "Stopping $NAME: "
23 start-stop-daemon -K -q -p $PIDFILE && echo "OK" || echo "Failed"
24 rm -f $PIDFILE
27 case "$1" in
28 start)
29 start
31 stop)
32 stop
34 restart|reload)
35 stop
36 start
39 echo "Usage: $0 {start|stop|restart}"
40 exit 1
41 esac
43 exit $?