freebsd-ports/net/spread/files/spread.sh.in
Doug Barton 29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00

34 lines
484 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: spread
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable spread:
#
# spread_enable="YES"
# spread_flags="<set as needed>"
#
# See spread(1) for flags
#
. /etc/rc.subr
name=spread
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/spread"
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/${name}.conf
# set defaults
spread_enable=${spread_enable:-"NO"}
load_rc_config ${name}
run_rc_command "$1"