#!/bin/sh
#
# $FreeBSD: comms/smstools3/files/smsd.in 300895 2012-07-14 12:56:14Z beat $
#
# 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"
rcvar=smsd_enable

load_rc_config ${name}
: ${smsd_enable="NO"}
: ${smsd_pidfile="/var/run/smsd/smsd.pid"}
: ${smsd_infofile="/var/run/smsd/smsd.working"}
: ${smsd_logfile="/var/log/smsd/smsd.log"}
: ${smsd_config="/usr/local/etc/smsd.conf"}
: ${smsd_user="uucp"}
: ${smsd_group="dialer"}

pidfile=${smsd_pidfile}
command="/usr/local/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"
