Magellan Linux

Annotation of /trunk/magellan-initscripts/etc/rc.d/init.d/gkrellmd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (hide annotations) (download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 2 months ago) by niro
File size: 1113 byte(s)
updated header and fixed whitespaces

1 niro 2 #!/bin/bash
2 niro 71 # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/gkrellmd,v 1.2 2005-03-15 19:07:56 niro Exp $
3 niro 2
4     #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k
5     #%start: 26
6     #%stop: 51
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     #note1: dont put this to runlevel 0 or 6 (K51) it may fail;
17     # sendsignals take care of this one and stops this daemon
18    
19     case "$1" in
20     start)
21     echo -e ${COLOREDSTAR}"Starting gkrellm monitoring daemon ..."
22     start-stop-daemon --start --quiet --background \
23     --pidfile /var/run/gkrellmd.pid \
24     --make-pidfile --exec /usr/bin/gkrellmd
25     evaluate_retval
26    
27     update_svcstatus $1
28     splash svc_started "$(basename $0)" 0
29     ;;
30    
31     stop)
32     echo -e ${COLOREDSTAR}"Stopping gkrellm monitoring daemon ..."
33     start-stop-daemon --stop --quiet \
34     --pidfile /var/run/gkrellmd.pid --name gkrellmd
35     evaluate_retval
36    
37     update_svcstatus $1
38     splash svc_stopped "$(basename $0)" 0
39     ;;
40    
41     restart)
42     $0 stop
43     sleep 1
44     $0 start
45     ;;
46    
47     status)
48     statusproc gkrellmd
49     ;;
50    
51     *)
52     echo "Usage: $0 {start|stop|restart|status}"
53     exit 1
54     ;;
55     esac

Properties

Name Value
svn:executable *