3 # sogod Scalable OpenGroupware.org (Inverse edition)
6 # description: SOGo is a groupware server
7 # processname: sogod-0.9
8 # config: /etc/sysconfig/sogo
9 # config: /etc/httpd/conf.d/SOGo.conf
10 # pidfile: /var/run/sogo/sogod.pid
12 PATH=/sbin:/bin:/usr/sbin:/usr/bin
14 . /etc/rc.d/init.d/functions
16 DAEMON=/usr/sbin/sogod
18 DESC="Scalable OpenGroupware.Org (Inverse edition)"
20 PIDFILE=/var/run/sogo/sogod.pid
24 if [ -f /etc/sysconfig/sogo ]; then
28 test -x $DAEMON || exit 0
34 echo -n $"Starting $DESC: " /
35 daemon --user sogo --pidfile $PIDFILE $DAEMON
39 echo -n $"Stopping $DESC: "
40 killproc --pidfile $PIDFILE $DAEMON
45 echo -n $"Restarting $DESC: "
46 killproc --pidfile $PIDFILE $DAEMON
49 daemon --user sogo --pidfile $PIDFILE $DAEMON
57 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2