Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
34 lines
601 B
Bash
34 lines
601 B
Bash
#!/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"}
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=freqshpd
|
|
rcvar=freqshpd_enable
|
|
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"
|