aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nagircbot/files/nagircbot.in
blob: 7dde53cf398b1375846aa63312f4af576126d84c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: nagircbot
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable nagircbot:
#
# nagircbot_enable="YES"
# nagircbot_flags="<set as needed>"
#
# You must configure at least some flags to make it connect to a server. See -h.
#

. /etc/rc.subr

name=nagircbot
rcvar=nagircbot_enable

pidfile=/var/run/nagios/${name}.pid
command=%%PREFIX%%/bin/nagircbot
command_args="-P $pidfile -z nagios"

# set defaults

nagircbot_enable=${nagircbot_enable:-"NO"}

load_rc_config ${name}
run_rc_command "$1"