aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/freqsdwn/files/freqshpd.sh.in
blob: 168d094a475e3648a3bd88927a127d793457c451 (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
29
30
31
32
33
34
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: freqshpd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Define these freqshpd_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/freqshpd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
freqshpd_enable=${freqshpd_enable-"NO"}

. %%RC_SUBR%%

name=freqshpd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/freqshpd

load_rc_config ${name}

pidfile=/var/run/freqshpd.pid
required_files=%%PREFIX%%/etc/freqship/UPSFILE
stop_postcmd="freqsdwn_poststop"

freqsdwn_poststop() {
    /bin/rm -f ${pidfile}
}

run_rc_command "$1"