aboutsummaryrefslogtreecommitdiff
path: root/net/irrd-legacy/files/irrd.in
blob: 7b9def16c9d39c98c727312495b7ed09f6ed015b (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
#!/bin/sh

# PROVIDE: irrd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

# Define these irrd_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/irrd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
irrd_enable="${irrd_enable:-NO}"		# Enable irrd
#irrd_program="%%PREFIX%%/sbin/irrd"		# Location of irrd
irrd_flags="${irrd_flags:--u}"			# Flags to irrd program

. /etc/rc.subr

name="irrd"
rcvar=irrd_enable
command="%%PREFIX%%/sbin/irrd"
required_files="%%PREFIX%%/etc/irrd.conf"

load_rc_config $name
run_rc_command "$1"