3 # SOGo init script for RedHat
5 # Copyright (C) 2007 Inverse groupe conseil
7 # Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
9 # This file is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This file is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; see the file COPYING. If not, write to
21 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 # Boston, MA 02111-1307, USA.
24 # sogod Scalable OpenGroupware.org (Inverse edition)
27 # description: SOGo is a groupware server
28 # processname: sogod-0.9
29 # config: /etc/sysconfig/sogo
30 # config: /etc/httpd/conf.d/SOGo.conf
31 # pidfile: /var/run/sogo/sogod.pid
33 PATH=/sbin:/bin:/usr/sbin:/usr/bin
35 . /etc/rc.d/init.d/functions
37 DAEMON=/usr/sbin/sogod
39 DESC="Scalable OpenGroupware.Org (Inverse edition)"
41 PIDFILE=/var/run/sogo/sogod.pid
45 if [ -f /etc/sysconfig/sogo ]; then
49 test -x $DAEMON || exit 0
55 echo -n $"Starting $DESC: " /
56 daemon --user sogo --pidfile $PIDFILE $DAEMON
60 echo -n $"Stopping $DESC: "
61 killproc --pidfile $PIDFILE $DAEMON
66 echo -n $"Restarting $DESC: "
67 killproc --pidfile $PIDFILE $DAEMON
70 daemon --user sogo --pidfile $PIDFILE $DAEMON
78 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2