diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
commit | 83eb2c37009874672764765ec3bf3b59286c7391 (patch) | |
tree | a956ace1a4a1e10876d4c36f12af02bc9df6cb29 /net-mgmt/nagiosgrapher | |
parent | 3c1484f2613137d7eaba8577f6d580c5532ac912 (diff) |
Notes
Diffstat (limited to 'net-mgmt/nagiosgrapher')
-rw-r--r-- | net-mgmt/nagiosgrapher/files/nagiosgrapher.in | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net-mgmt/nagiosgrapher/files/nagiosgrapher.in b/net-mgmt/nagiosgrapher/files/nagiosgrapher.in index 124473057083..3ec61d3a3f17 100644 --- a/net-mgmt/nagiosgrapher/files/nagiosgrapher.in +++ b/net-mgmt/nagiosgrapher/files/nagiosgrapher.in @@ -2,7 +2,6 @@ # # $FreeBSD$ # - # PROVIDE: %%NAME%% # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON @@ -10,21 +9,21 @@ # Add the following line to /etc/rc.conf to enable `%%NAME%%': # -#%%NAME%%_enable="YES" +# %%NAME%%_enable="YES" . /etc/rc.subr name="%%NAME%%" -: ${%%NAME%%_user="nagios"} -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable pidfile="/var/spool/nagios/nagios_grapher/$name.pid" command="%%PREFIX%%/libexec/nagios/contrib/$name" command_interpreter="/usr/bin/perl" -# read configuration and set defaults load_rc_config $name + : ${%%NAME%%_enable="NO"} +: ${%%NAME%%_user="nagios"} run_rc_command "$1" |