1d6b4b3f91
s#. %%RC_SUBR%%#. /etc/rc.subr#
31 lines
483 B
Bash
31 lines
483 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=`set_rcvar`
|
|
|
|
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"
|