freebsd-ports/net/spread/files/spread.in
Olli Hauer 8983a88800 - use reserverd UID/GID
- use ports-framework to create user/group
- remove pkg-(de)install
- rename patchfiles
- rename rc file ( s/.in// )
- bump PORTREVISION

with hat apache@

PR:		169953
Submitted by:	Marcello Coutinho <marcellocoutinho@gmail.com>
2012-07-20 20:32:20 +00:00

34 lines
486 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=spread_enable
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"