#!/bin/sh # 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"