1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net/stund/files/stund.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

35 lines
594 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: stund
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
: ${stund_enable:=NO}
: ${stund_pidfile:=/var/run/stund.pid}
: ${stund_flags="-h \"\$stund_ip1\" -a \"\$stund_ip2\" -b"}
name="stund"
command="%%PREFIX%%/sbin/stund"
rcvar=stund_enable
extra_commands="status"
pidfile="$stund_pidfile"
load_rc_config $name
start_precmd=stund_prestart
stund_prestart() {
if [ -z "$stund_ip1" -o -z "$stund_ip2" ]; then
echo stund: failed: you must set stund_ip1 and stund_ip2 1>&2
return 1
fi
return 0
}
run_rc_command "$1"