4 # geneweb: Starts the genealogy Server
6 # Version: @(#) /etc/rc.d/init.d/gwd 1.0
8 # description: Starts and stops the genealogy Server at boot time and shutdown.
13 # Source function library.
14 if [ -f /etc/rc.d/init.d/functions ]; then
15 . /etc/rc.d/init.d/functions
19 # See how we were called.
22 if [ ! -f /var/lock/subsys/geneweb ]; then
25 daemon gwd -log /var/log/gwd.log -daemon -setup_link -bd /var/lib/geneweb -hd /usr/share/geneweb/lang
26 daemon gwsetup -daemon -gd /usr/share/geneweb/ 2>> /var/log/gwsetup.log
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geneweb
30 msg_already_running geneweb
34 if [ -f /var/lock/subsys/geneweb ]; then
38 rm -f /var/lock/subsys/geneweb >/dev/null 2>&1
40 msg_not_running geneweb
52 msg_usage "$0 {start|stop|restart|reload|status}"