]> git.pld-linux.org Git - packages/geneweb.git/blame - geneweb.init
- program must read configs
[packages/geneweb.git] / geneweb.init
CommitLineData
13e1b686 1#!/bin/sh
01ed802c 2# chkconfig: 345 99 01
13e1b686 3#
01ed802c 4# geneweb: Starts the genealogy Server
13e1b686 5#
01ed802c 6# Version: @(#) /etc/rc.d/init.d/gwd 1.0
13e1b686
PG
7#
8# description: Starts and stops the genealogy Server at boot time and shutdown.
9#
10# processname: gwd
11# hide: true
12
13# Source function library.
14if [ -f /etc/rc.d/init.d/functions ]; then
15 . /etc/rc.d/init.d/functions
16fi
17
01ed802c 18RETVAL=0
13e1b686
PG
19# See how we were called.
20case "$1" in
01ed802c 21 start)
22 if [ ! -f /var/lock/subsys/geneweb ]; then
23 msg_starting geneweb
24 daemon gwd -log /var/log/gwd.log -daemon -setup_link -bd /var/lib/geneweb -hd /usr/share/geneweb/lang
25 daemon gwsetup -daemon -gd /usr/share/geneweb/ 2>> /var/log/gwsetup.log
26 RETVAL=$?
27 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geneweb
28 else
29 msg_already_running geneweb
30 fi
31 ;;
32 stop)
33 if [ -f /var/lock/subsys/geneweb ]; then
34 msg_stopping geneweb
35 killproc gwd
36 killproc gwsetup
37 rm -f /var/lock/subsys/geneweb >/dev/null 2>&1
38 else
39 msg_not_running geneweb
40 fi
41 ;;
42 status)
43 status gwd
44 status gwsetup
45 ;;
46 restart|reload)
47 $0 stop
48 $0 start
49 ;;
50 *)
51 msg_usage "$0 {start|stop|restart|reload|status}"
52 exit 3
13e1b686
PG
53esac
54
01ed802c 55exit $RETVAL
This page took 0.071502 seconds and 4 git commands to generate.