diff options
Diffstat (limited to 'net/spreadlogd/files/spreadlogd.sh')
-rw-r--r-- | net/spreadlogd/files/spreadlogd.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/spreadlogd/files/spreadlogd.sh b/net/spreadlogd/files/spreadlogd.sh new file mode 100644 index 00000000000..afb02e7b5d7 --- /dev/null +++ b/net/spreadlogd/files/spreadlogd.sh @@ -0,0 +1,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" |