ports/net/mdns-bridge/files/mdns_bridge.in
Denny Page 2b444dc15d net/mdns-bridge: Fix rc script
Fix command name to point to binary installed by this port

PR:		285100
MFH:		2025Q1
2025-03-28 08:45:11 -03:00

30 lines
642 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%%/bin/mdns-bridge
pidfile=/var/run/${name}.pid
command_args="-s -p $pidfile -c $mdns_bridge_config"
run_rc_command "$1"