aboutsummaryrefslogtreecommitdiffstats
path: root/net/binkd/files/binkd.sh.in
blob: 8ef0f0b437ea2bdd9a497c7b69c7bcc3261dea19 (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: FreeBSD 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%%

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

load_rc_config binkd 
run_rc_command "$1"