diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2008-12-25 14:42:24 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2008-12-25 14:42:24 +0000 |
commit | a15ec654cf7a179ccedc496354868e1f37b10da8 (patch) | |
tree | 1d8dda43e1fe4c52d2643e4a36c96268877c1ae2 /net-mgmt/ndoutils/files | |
parent | d7df1ad896a92f29f20119538906dc57f243af22 (diff) |
Notes
Diffstat (limited to 'net-mgmt/ndoutils/files')
-rw-r--r-- | net-mgmt/ndoutils/files/ndo2db.in | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net-mgmt/ndoutils/files/ndo2db.in b/net-mgmt/ndoutils/files/ndo2db.in index 3f0634bdee59..745792d323d7 100644 --- a/net-mgmt/ndoutils/files/ndo2db.in +++ b/net-mgmt/ndoutils/files/ndo2db.in @@ -10,20 +10,19 @@ # Add the following lines to /etc/rc.conf to enable ndo2db: # ndo2db_enable (bool): Set to "NO" by default. # ndo2db_flags (str): Set to "" by default. -# ndo2db_configfile (str): Set to "%%PREFIX%%/etc/nagios/nagios.cfg" by default. +# ndo2db_configfile (str): Set to "%%PREFIX%%/etc/nagios/ndo2db.cfg" by default. + +: ${ndo2db_enable="NO"} +: ${ndo2db_configfile="%%PREFIX%%/etc/nagios/ndo2db.cfg"} . %%RC_SUBR%% name="ndo2db" rcvar=${name}_enable -command="%%PREFIX%%/bin/${name}" +command="%%PREFIX%%/bin/ndo2db-3x" required_files="${ndo2db_configfile}" command_args="-c ${ndo2db_configfile}" load_rc_config $name - -: ${ndo2db_enable=-NO} -: ${ndo2db_configfile=-%%PREFIX%%/etc/nagios/nagios.cfg} - run_rc_command "$1" |