projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b86dd62
)
Fixed RedHat init script to shut down collectd on reboot/halt.
author
Sven Trenkel
<collectd@semidefinite.de>
Tue, 16 Nov 2010 11:11:45 +0000
(12:11 +0100)
committer
Sven Trenkel
<collectd@semidefinite.de>
Tue, 16 Nov 2010 11:11:45 +0000
(12:11 +0100)
contrib/redhat/init.d-collectd
patch
|
blob
|
history
diff --git
a/contrib/redhat/init.d-collectd
b/contrib/redhat/init.d-collectd
index
b7c085c
..
a60acb3
100644
(file)
--- a/
contrib/redhat/init.d-collectd
+++ b/
contrib/redhat/init.d-collectd
@@
-1,7
+1,7
@@
#!/bin/bash
#
# collectd Startup script for the Collectd statistics gathering daemon
#!/bin/bash
#
# collectd Startup script for the Collectd statistics gathering daemon
-# chkconfig: -
86 15
+# chkconfig: -
99 01
# description: Collectd is a statistics gathering daemon used to collect \
# system information ie. cpu, memory, disk, network
# processname: collectd
# description: Collectd is a statistics gathering daemon used to collect \
# system information ie. cpu, memory, disk, network
# processname: collectd
@@
-15,6
+15,7
@@
RETVAL=0
ARGS=""
prog="collectdmon"
RETVAL=0
ARGS=""
prog="collectdmon"
+service="collectd"
CONFIG=/etc/collectd.conf
COLLECTD=/usr/sbin/collectd
COLLECTDMONPID=/var/run/collectdmon.pid
CONFIG=/etc/collectd.conf
COLLECTD=/usr/sbin/collectd
COLLECTDMONPID=/var/run/collectdmon.pid
@@
-30,7
+31,7
@@
start () {
daemon $prog -P $COLLECTDMONPID -c $COLLECTD -- -C "$CONFIG"
RETVAL=$?
echo
daemon $prog -P $COLLECTDMONPID -c $COLLECTD -- -C "$CONFIG"
RETVAL=$?
echo
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$
prog
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$
service
fi
}
stop () {
fi
}
stop () {
@@
-38,7
+39,7
@@
stop () {
killproc $prog
RETVAL=$?
echo
killproc $prog
RETVAL=$?
echo
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$
prog
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$
service
}
# See how we were called.
case "$1" in
}
# See how we were called.
case "$1" in