]> git.pld-linux.org Git - packages/geneweb.git/blame - geneweb.init
- init script for geneweb
[packages/geneweb.git] / geneweb.init
CommitLineData
13e1b686
PG
1#!/bin/sh
2# chkconfig: 345 99 01
3#
4# gwd: Starts the genealogy Server
5#
6# Version: @(#) /etc/rc.d/init.d/gwd 1.0
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
18# See how we were called.
19case "$1" in
20 start)
21 if [ ! -f /var/lock/subsys/geneweb ]; then
22 msg_starting geneweb
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
25 RETVAL=$?
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/geneweb
27 else
28 msg_already_running geneweb
29 fi
30 ;;
31 stop)
32 if [ -f /var/lock/subsys/geneweb ]; then
33 msg_stopping geneweb
34 killproc gwd
35 killproc gwsetup
36 rm -f /var/lock/subsys/geneweb >/dev/null 2>&1
37 else
38 msg_not_running geneweb
39 fi
40 ;;
41 status)
42 status gwd
43 status gwsetup
44 ;;
45 restart|reload)
46 $0 stop
47 $0 start
48 ;;
49 *)
50 msg_usage "$0 {start|stop|restart|reload|status}"
51 exit 1
52esac
53
This page took 0.082478 seconds and 4 git commands to generate.