summaryrefslogtreecommitdiff
path: root/net/qadsl/files/qadsl.in
blob: aa94a1ba5d779be80f3f76345e7eea875498f510 (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
33
34
35
#!/bin/sh

# PROVIDE: qadsl 
# REQUIRE: NETWORK
# BEFORE: DAEMON SERVERS LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable qadsl:
#
#qadsl_enable="YES"
#
# Configuration flags can be set with qadsl_flags=""
#
# See qadsl(8) for flags.
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# Default flags
qadsl_enable=${qadsl_enable-"NO"}
qadsl_flags=${qadsl_flags-"-l"}
qadsl_pidfile=${qadsl_pidfile-"/var/run/qadsl.pid"}

. /etc/rc.subr

name="qadsl"
rcvar=qadsl_enable
command=%%PREFIX%%/sbin/qadsl
load_rc_config $name

pidfile=${qadsl_pidfile}
required_files=%%PREFIX%%/etc/qadsl.conf

qadsl_flags="${qadsl_flags} -p ${qadsl_pidfile}"

run_rc_command "$1"