freebsd-ports/net/mdns-bridge/files/mdns_bridge.in
Denny Page bb1dea909c net/mdns-bridge: New port
daemon for forwarding mDNS data between network interfaces. It
is intended for use by firewalls to provide service discovery
across network segments, with and without filtering, for both
IPv4 and IPv6.

PR:		282569
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2024-11-20 08:24:10 -03:00

30 lines
639 B
Bash

#!/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%%/sbin/${name}
pidfile=/var/run/${name}.pid
command_args="-s -p $pidfile -c $mdns_bridge_config"
run_rc_command "$1"