mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
a15ec654cf
- Depend on net-mgmt/nagios not -devel PR: ports/129485 [1] Submitted by: olli hauer <ohauer@gmx.de> [1] Approved by: araujo (mentor, implicit)
29 lines
636 B
Bash
29 lines
636 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: ndo2db
|
|
# REQUIRE: DAEMON nagios
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
# 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/ndo2db.cfg" by default.
|
|
|
|
: ${ndo2db_enable="NO"}
|
|
: ${ndo2db_configfile="%%PREFIX%%/etc/nagios/ndo2db.cfg"}
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="ndo2db"
|
|
rcvar=${name}_enable
|
|
|
|
command="%%PREFIX%%/bin/ndo2db-3x"
|
|
required_files="${ndo2db_configfile}"
|
|
command_args="-c ${ndo2db_configfile}"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|