#!/bin/sh # $FreeBSD: head/net/knxd/files/knxd.in 531926 2020-04-17 12:01:50Z mfechner $ # PROVIDE: knxd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # # Execute the following line to enable knxd: # # sysrc knxd_enable="YES": Set to "YES" to enable knxd # # sysrc knxd_config="%%PREFIX%%/etc/knxd.conf" The config file to use # . /etc/rc.subr name=knxd rcvar=knxd_enable load_rc_config $name : ${knxd_enable:="NO"} : ${knxd_config:="%%PREFIX%%/etc/knxd.conf"} : ${knxd_flags="${knxd_config}"} command="%%PREFIX%%/bin/knxd" #command_args="" #stop_postcmd="rm -f $pidfile" run_rc_command "$1"