2005-05-14 13:12:15 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: spreadlogd
|
|
|
|
# REQUIRE: spread
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2005-05-14 13:12:15 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Add the following lines to /etc/rc.conf to enable spread:
|
|
|
|
#
|
2009-07-15 18:56:10 +02:00
|
|
|
# spreadlogd_enable="YES"
|
|
|
|
# spreadlogd_flags="<set as needed>"
|
2005-05-14 13:12:15 +02:00
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2005-05-14 13:12:15 +02:00
|
|
|
|
|
|
|
name=spreadlogd
|
|
|
|
rcvar=`set_rcvar`
|
|
|
|
|
|
|
|
command="%%PREFIX%%/sbin/spreadlogd"
|
|
|
|
pidfile=/var/run/${name}.pid
|
|
|
|
required_files=%%PREFIX%%/etc/${name}.conf
|
|
|
|
|
2009-07-15 18:56:10 +02:00
|
|
|
load_rc_config ${name}
|
|
|
|
|
2005-05-14 13:12:15 +02:00
|
|
|
# set defaults
|
|
|
|
|
|
|
|
spreadlogd_enable=${spreadlogd_enable:-"NO"}
|
|
|
|
|
|
|
|
run_rc_command "$1"
|