summaryrefslogtreecommitdiff
path: root/net/irrd/files/irrd.sh
blob: 71069dfb7973cf1dac37b3d69a69169e611804bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# PROVIDE: irrd
# REQUIRE: DAEMON

name="irrd"

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
else
	if [ -f @PREFIX@/etc/rc.subr ]; then
		. @PREFIX@/etc/rc.subr
	fi
fi

: ${irrd_conf:="@PKG_SYSCONFDIR@/irrd.conf"}

rcvar=${name}
required_files="${irrd_conf}"
command="@PREFIX@/sbin/irrd"
command_args="-f ${irrd_conf} -l @IRRD_USER@ -g @IRRD_GROUP@"

load_rc_config $name
run_rc_command "$1"