Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 5 months ago) by niro
File size: 982 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

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

Properties

Name Value
svn:executable *