summaryrefslogtreecommitdiff
path: root/sysutils/munin-node/files/munin-node.sh
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-12-14 01:43:10 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-12-14 01:43:10 +0000
commitd1fe1cbc7c11aea833498ee115fe885fad59b5ba (patch)
tree4c41ab291f7080400f711fdaa6d10fe3e76dc001 /sysutils/munin-node/files/munin-node.sh
parentchange 2.0 references to 2.x references (diff)
- Update to 1.0.4
* it unbreaks munin-node PR: ports/74165, ports/74166 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=123975
Diffstat (limited to 'sysutils/munin-node/files/munin-node.sh')
-rw-r--r--sysutils/munin-node/files/munin-node.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/munin-node/files/munin-node.sh b/sysutils/munin-node/files/munin-node.sh
index a0b47d4e1f58..fb88e12f06aa 100644
--- a/sysutils/munin-node/files/munin-node.sh
+++ b/sysutils/munin-node/files/munin-node.sh
@@ -14,7 +14,13 @@ case "$1" in
if [ -f $CONFIG ]; then
PIDFILE=`awk '$1 == "pid_file" { print $2 }' $CONFIG`
if [ -f $PIDFILE ]; then
- /bin/kill `cat $PIDFILE` && echo -n ' munin-node'
+ PID=`cat $PIDFILE`
+ CMD=`ps -xa -o command -p $PID | sed 1d`
+ case "$CMD" in
+ *munin-node*)
+ /bin/kill $PID && echo -n ' munin-node'
+ ;;
+ esac
fi
fi
;;