4 # gwd: 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
18 # See how we were called.
21 if [ ! -f /var/lock/subsys/geneweb ]; then
23 daemon gwd -log /var/log/gwd.log -daemon -setup_link -bd /var/lib/geneweb -hd /usr/share/geneweb/lang
24 daemon gwsetup -daemon -gd /usr/share/geneweb/ 2>> /var/log/gwsetup.log
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geneweb
28 msg_already_running geneweb
32 if [ -f /var/lock/subsys/geneweb ]; then
36 rm -f /var/lock/subsys/geneweb >/dev/null 2>&1
38 msg_not_running geneweb
50 msg_usage "$0 {start|stop|restart|reload|status}"