Contents of /trunk/gkrellm/gkrellmd.rc
Parent Directory | Revision Log
Revision 27 -
(show annotations)
(download)
Sun Jun 26 15:30:03 2005 UTC (19 years, 4 months ago) by niro
File size: 1073 byte(s)
Sun Jun 26 15:30:03 2005 UTC (19 years, 4 months ago) by niro
File size: 1073 byte(s)
new
1 | #!/bin/bash |
2 | # $Header: /root/magellan-cvs/src/gkrellm/gkrellmd.rc,v 1.1 2005-06-26 15:30:03 niro Exp $ |
3 | |
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 | * |