1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/net/qadsl/files/qadsl.sh.in
Doug Barton c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00

38 lines
683 B
Bash

#!/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"}
. %%RC_SUBR%%
name="qadsl"
rcvar=`set_rcvar`
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"