summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e585c5)
raw | patch | inline | side by side (parent: 1e585c5)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 7 Nov 2014 16:37:40 +0000 (17:37 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 7 Nov 2014 16:37:40 +0000 (17:37 +0100) |
This mitigates the risk of having 2 daemons running simultaneously
during a short period, on restart.
The debian package's initscript does the same thing, using the same
timeout value.
during a short period, on restart.
The debian package's initscript does the same thing, using the same
timeout value.
contrib/redhat/init.d-collectd | patch | blob | history |
index abdb168f15d28cce78db59ca29589d2ef0a40e5d..4c69f3c9b7e0dd88fc1ac793eca7a7e68b02bb62 100644 (file)
COLLECTDMONPIDDIR="/var/run"
COLLECTDMONPID="$COLLECTDMONPIDDIR/collectdmon.pid"
+MAXWAIT=30
+
if [ -r /etc/sysconfig/$service ]; then
. /etc/sysconfig/$service
fi
}
stop () {
echo -n $"Stopping collectd: "
- killproc -p $COLLECTDMONPID $prog
+ killproc -p $COLLECTDMONPID -d $MAXWAIT $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$service