freebsd-ports/www/spreadlogd/files/spreadlogd.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

31 lines
489 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: spreadlogd
# REQUIRE: spread
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable spread:
#
# spreadlogd_enable="YES"
# spreadlogd_flags="<set as needed>"
. /etc/rc.subr
name=spreadlogd
rcvar=spreadlogd_enable
command="%%PREFIX%%/sbin/spreadlogd"
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/${name}.conf
load_rc_config ${name}
# set defaults
spreadlogd_enable=${spreadlogd_enable:-"NO"}
run_rc_command "$1"