#!/bin/sh # # $FreeBSD: head/net/mrouted/files/mrouted.in 458619 2018-01-10 10:30:23Z pi $ # 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"