aboutsummaryrefslogtreecommitdiff
path: root/comms/smstools3/files/smsd.in
blob: 1f96997aab008d3c916c216d8dff61e9836c0f19 (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
#!/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
rcvar=smsd_enable

load_rc_config ${name}
: ${smsd_enable:=NO}
: ${smsd_pidfile:="%%PIDDIR%%/smsd.pid"}
: ${smsd_infofile:="%%PIDDIR%%/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"