aboutsummaryrefslogtreecommitdiff
path: root/net/binkd/files/binkd.sh.in
blob: 30e79454115272e9d9ebdaf629efbed82f2c754b (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
31
32
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: binkd 
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Define these binkd_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/apache
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
binkd_enable=${binkd_enable:-"NO"}
binkd_config=${binkd_config:-"%%PREFIX%%/etc/binkd.cfg"}
binkd_flags=${binkd_flags:-"-D"}
binkd_user=${binkd_user:-"fido"}
binkd_pidfile=${binkd_pidfile:-"/var/run/binkd/binkd.pid"}

. %%RC_SUBR%%
load_rc_config binkd 

name="binkd"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/binkd"
command_args="${binkd_config}"
required_files="${binkd_config}"
pidfile="${binkd_pidfile}"

run_rc_command "$1"