3 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
5 DAEMON=/usr/local/sbin/sogod-0.9
7 DESC="Scalable OpenGroupware.Org"
9 PIDFILE=/var/run/sogo/sogod.pid
13 if [ -f /etc/default/sogo ]; then
17 test -x $DAEMON || exit 0
23 echo -n "Starting $DESC: "
24 start-stop-daemon -c sogo --pidfile $PIDFILE \
25 -b --start --quiet --exec $DAEMON
29 echo -n "Stopping $DESC: "
30 killall sogod-0.9 2> /dev/null
35 echo -n "Restarting $DESC: "
36 killall sogod-0.9 2> /dev/null
39 start-stop-daemon -c sogo --pidfile $PIDFILE \
40 -b --start --quiet --exec $DAEMON
45 echo "Usage: $N {start|stop|restart|force-reload}" >&2