freebsd-ports/comms/smstools3/files/smsd.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

31 lines
665 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: smsd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable smsd:
#
# smsd_enable="YES"
#
. /etc/rc.subr
name="smsd"
load_rc_config ${name}
: ${smsd_enable="NO"}
: ${smsd_pidfile="%%PIDDIR%%/smsd.pid"}
: ${smsd_infofile="%%PIDDIR%%/smsd.working"}
: ${smsd_logfile="%%LOGDIR%%/smsd.log"}
: ${smsd_config="%%PREFIX%%/etc/smsd.conf"}
: ${smsd_user="uucp"}
: ${smsd_group="dialer"}
rcvar=`set_rcvar`
pidfile=${smsd_pidfile}
command="%%PREFIX%%/bin/smsd"
command_args="-c${smsd_config} -p${smsd_pidfile} -i${smsd_infofile} -l${smsd_logfile} -u${smsd_user} -g${smsd_group}"
run_rc_command "$1"