diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-05-31 11:54:01 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-05-31 11:54:01 +0000 |
commit | 16eb7c2ca089906fc35060aac00e8522c52a2fd9 (patch) | |
tree | 0b5233ed2a1bc25f12dc9d56da8b18ad62e8ca06 /sysutils/munin-node/files/munin-node.in | |
parent | Actually remove bitchx-devel and add a VuXML entry. (diff) |
Stop checking for get_pidfile_from_conf function in rc.subr.
It is present in all supported versions of FreeBSD, and has had poor takeup.
I strongly suspect the strange-looking checks are partially to blame for
scaring maintainers off.
Go forth and please use it!
PR: ports/178269
Approved by: maintainers of all ports involved
Notes
Notes:
svn path=/head/; revision=319487
Diffstat (limited to 'sysutils/munin-node/files/munin-node.in')
-rw-r--r-- | sysutils/munin-node/files/munin-node.in | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sysutils/munin-node/files/munin-node.in b/sysutils/munin-node/files/munin-node.in index e59f4dd135cd..9784e3176fb2 100644 --- a/sysutils/munin-node/files/munin-node.in +++ b/sysutils/munin-node/files/munin-node.in @@ -15,7 +15,7 @@ . /etc/rc.subr -name="munin_node" +name=munin_node rcvar=munin_node_enable load_rc_config $name @@ -31,12 +31,8 @@ stop_precmd=find_pidfile find_pidfile() { - if type get_pidfile_from_conf >/dev/null 2>&1 && - get_pidfile_from_conf pid_file $munin_node_config; then - pidfile="$_pidfile_from_conf" - else - pidfile=`awk '$1 == "pid_file" { print $2 }' $munin_node_config` - fi + get_pidfile_from_conf pid_file $munin_node_config + pidfile="$_pidfile_from_conf" } -run_rc_command "$1" +run_rc_command $1 |