mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
9d762de626
o newrc startup script; o bump PORTREVISION.
35 lines
592 B
Bash
35 lines
592 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: stund
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
. %%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=`set_rcvar`
|
|
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"
|