pkgsrc/net/spreadlogd/files/spreadlogd.sh
obache 2a377946ed Import spreadlogd version 2.0.0.
Packaged and provided by Mark Blackman via PR 36348.

Spreadlogd is a general purpose daemon for receiving Spread toolkit
broadcast/multicast messages and logging them either to a file or for further
processing by a Perl module as an interpreter is embedded.
2007-07-29 06:58:59 +00:00

27 lines
500 B
Bash

#!@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"