blob: 8cdc61a495e483360803aa64d27f05175d91ecc8 (
plain) (
blame)
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
26
27
28
29
30
|
#!/bin/sh
# PROVIDE: mdns_bridge
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# mdns_bridge_enable (bool): Set to NO by default.
# Set it to YES to enable mdns-bridge.
# mdns_bridge_config (path): Set to %%PREFIX%%/etc/mdns-bridge.conf
# by default.
. /etc/rc.subr
name=mdns_bridge
rcvar=mdns_bridge_enable
load_rc_config $name
: ${mdns_bridge_enable:=NO}
: ${mdns_bridge_config=%%PREFIX%%/etc/mdns-bridge.conf}
command=%%PREFIX%%/bin/mdns-bridge
pidfile=/var/run/${name}.pid
command_args="-s -p $pidfile -c $mdns_bridge_config"
run_rc_command "$1"
|