summaryrefslogtreecommitdiff
path: root/net/knxd/files/knxd.in
blob: ae130b04bedcaab6baab8aff59353986d57a3e13 (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: 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"