mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
27 lines
537 B
Bash
27 lines
537 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: mdns_repeater
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable mdns-repeater
|
|
# mdns_repeater_enable="YES"
|
|
# mdns_repeater_interfaces="vr0 vr1"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=mdns_repeater
|
|
rcvar=mdns_repeater_enable
|
|
|
|
load_rc_config ${name}
|
|
|
|
: ${mdns_repeater_enable:=NO}
|
|
: ${mdns_repeater_interfaces:="vr0 vr1"}
|
|
|
|
pidfile="/var/run/mdns-repeater.pid"
|
|
command="%%PREFIX%%/bin/mdns-repeater"
|
|
command_args=" -p ${pidfile} ${mdns_repeater_interfaces}"
|
|
|
|
# run service
|
|
run_rc_command "$1"
|