summaryrefslogtreecommitdiff
path: root/net/spreadlogd/files/spreadlogd.sh
blob: afb02e7b5d7b573311168c3c2947d16385dc482e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!@RCD_SCRIPTS_SHELL@
#
# PROVIDE: spreadlogd
# REQUIRE: DAEMON
#
# To start spreadlogd at startup, copy this script to /etc/rc.d and set
# spreadlogd=YES in /etc/rc.conf.
#
# Addtionally you may set spread_log to a file where to log stuff.

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

rcd_dir=`@DIRNAME@ $0`

name="spreadlogd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
sig_stop=INT

required_files="@PKG_SYSCONFDIR@/spreadlogd.conf"

command_args=""

load_rc_config $name
run_rc_command "$1"