]> git.pld-linux.org Git - packages/gnustep-base.git/blame - gnustep-base.init
- orphaned, outdated
[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
aed1ee97
JB
15case "$1" in
16 start)
17 if [ ! -f /var/lock/subsys/gnustep ]; then
18 msg_starting "gnustep services"
744a0c87 19 daemon @TOOLSARCHDIR@/gdomap $GDOMAP_OPTIONS
aed1ee97
JB
20 RETVAL=$?
21 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gnustep
22 else
23 msg_already_running "gnustep services"
24 exit 1
25 fi
26 ;;
27 stop)
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
37 ;;
38 status)
39 status gdomap
40 RETVAL=$?
41 ;;
42 restart|reload)
43 $0 stop
44 $0 start
45 ;;
46 *)
47 msg_usage "$0 {start|stop|status|restart|reload}"
48 exit 1
49esac
50
51exit $RETVAL
This page took 0.075657 seconds and 4 git commands to generate.