summaryrefslogtreecommitdiff
path: root/net/mrouted/files/mrouted.in
blob: ae7e4884b6bfc51cd2cae5062f31d6e8a97b2dbe (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
25
#!/bin/sh
#
# $FreeBSD$

# PROVIDE: mrouted
# REQUIRE: netif routing cleanvar
# KEYWORD: nojail

. /etc/rc.subr

name="mrouted"
rcvar="${name}_enable"
command="%%PREFIX%%/sbin/$name"
pidfile="/var/run/${name}.pid"
extra_commands="reload"

load_rc_config $name
: ${mrouted_enable="NO"}
: ${mrouted_config="%%PREFIX%%/etc/${name}.conf"}

required_files="${mrouted_config}"

command_args="-c ${mrouted_config}"

run_rc_command "$1"