mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
12f56a38a7
* Use more bsd.port.mk convenience switches. * Use rc.subr properly for spread daemon. * Write a logfile rather than spewing to stdio. * Move rendezvous socket to /var/run. * Make Makefile.PL behave properly with PREFIX. PR: ports/60053 Submitted by: Joshua Goodall <joshua@roughtrade.net>
35 lines
505 B
Bash
35 lines
505 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: spread
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: FreeBSD shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable spread:
|
|
#
|
|
#spread_enable="YES"
|
|
#
|
|
# See spread(1) for flags
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=spread
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/sbin/spread"
|
|
command_args=""
|
|
pidfile=/var/run/${name}.pid
|
|
required_files=%%PREFIX%%/etc/${name}.conf
|
|
|
|
# set defaults
|
|
|
|
spread_enable=${spread_enable:-"NO"}
|
|
spread_flags=${spread_flags:-""}
|
|
|
|
load_rc_config ${name}
|
|
run_rc_command "$1"
|