]> git.pld-linux.org Git - packages/geneweb.git/blame - geneweb.init
- tabs in preamble
[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
96b2a991 24 cd /var/lib/geneweb
01ed802c 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
27 RETVAL=$?
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geneweb
29 else
30 msg_already_running geneweb
31 fi
32 ;;
33 stop)
34 if [ -f /var/lock/subsys/geneweb ]; then
35 msg_stopping geneweb
36 killproc gwd
37 killproc gwsetup
38 rm -f /var/lock/subsys/geneweb >/dev/null 2>&1
39 else
40 msg_not_running geneweb
41 fi
42 ;;
43 status)
44 status gwd
45 status gwsetup
46 ;;
47 restart|reload)
48 $0 stop
49 $0 start
50 ;;
51 *)
52 msg_usage "$0 {start|stop|restart|reload|status}"
53 exit 3
13e1b686
PG
54esac
55
01ed802c 56exit $RETVAL
This page took 0.091261 seconds and 5 git commands to generate.