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 /net-mgmt/hawk | |
parent | 9aa023d98b38b00ce99f700f2ec5c2506051ee51 (diff) | |
download | ports-16eb7c2ca089906fc35060aac00e8522c52a2fd9.tar.gz ports-16eb7c2ca089906fc35060aac00e8522c52a2fd9.zip |
Notes
Diffstat (limited to 'net-mgmt/hawk')
-rw-r--r-- | net-mgmt/hawk/files/hawk.in | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net-mgmt/hawk/files/hawk.in b/net-mgmt/hawk/files/hawk.in index 136205702bc8..19fcada9d00c 100644 --- a/net-mgmt/hawk/files/hawk.in +++ b/net-mgmt/hawk/files/hawk.in @@ -24,18 +24,16 @@ load_rc_config hawk command=%%PREFIX%%/sbin/hawk command_interpreter=%%PERL%% command_args='&' +start_precmd=find_pidfile +stop_precmd=find_pidfile find_pidfile() { - if type get_pidfile_from_conf >/dev/null 2>&1 && - get_pidfile_from_conf pidfile %%PREFIX%%/etc/hawk/daemon.conf; then + if get_pidfile_from_conf pidfile %%PREFIX%%/etc/hawk/daemon.conf; then pidfile="$_pidfile_from_conf" else pidfile='/var/run/hawk.pid' fi } -start_precmd=find_pidfile -stop_precmd=find_pidfile - run_rc_command "$1" |