]> git.pld-linux.org Git - packages/gnustep-base.git/blame - gnustep-base.init
- 1.18.0
[packages/gnustep-base.git] / gnustep-base.init
CommitLineData
aed1ee97
JB
1#!/bin/sh
2#
3# gnustep daemons
4#
c034b7d7 5# chkconfig: 2345 35 65
6# description: Starts gnustep daemons
aed1ee97
JB
7#
8
9# Source function library.
10. /etc/rc.d/init.d/functions
11
744a0c87
JR
12# Get service config
13[ -f /etc/sysconfig/gnustep ] && . /etc/sysconfig/gnustep
14
287cfc46 15start() {
aed1ee97
JB
16 if [ ! -f /var/lock/subsys/gnustep ]; then
17 msg_starting "gnustep services"
99975095 18 daemon gdomap $GDOMAP_OPTIONS
aed1ee97
JB
19 RETVAL=$?
20 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gnustep
21 else
22 msg_already_running "gnustep services"
23 exit 1
24 fi
287cfc46
ER
25}
26
27stop() {
aed1ee97
JB
28 if [ -f /var/lock/subsys/gnustep ]; then
29 msg_stopping "gnustep services"
30 killproc gdomap
31 RETVAL=$?
32 rm -f /var/lock/subsys/gnustep
33 else
34 msg_not_running "gnustep services"
35 exit 1
36 fi
287cfc46
ER
37}
38
39case "$1" in
40 start)
41 start
aed1ee97 42 ;;
287cfc46
ER
43 stop)
44 stop
45 ;;
46 status)
aed1ee97
JB
47 status gdomap
48 RETVAL=$?
aed1ee97 49 ;;
287cfc46
ER
50 restart|reload)
51 stop
52 start
53 ;;
54*)
55 msg_usage "$0 {start|stop|status|restart|reload}"
56 exit 1
aed1ee97
JB
57esac
58
59exit $RETVAL
This page took 0.08305 seconds and 4 git commands to generate.