mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-17 05:51:19 +02:00
30 lines
616 B
Bash
30 lines
616 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: head/comms/smstools3/files/smsd.in 359425 2014-06-26 22:28:34Z madpilot $
|
|
#
|
|
# 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:="%%SMS_RUNDIR%%/smsd.pid"}
|
|
: ${smsd_infofile:="%%SMS_RUNDIR%%/smsd.working"}
|
|
: ${smsd_config:="%%PREFIX%%/etc/smsd.conf"}
|
|
|
|
pidfile=${smsd_pidfile}
|
|
command="%%PREFIX%%/bin/smsd"
|
|
command_args="-c${smsd_config} -p${smsd_pidfile} -i${smsd_infofile}"
|
|
|
|
run_rc_command "$1"
|
|
#EOF
|