aboutsummaryrefslogtreecommitdiff
path: root/www/spreadlogd/files/spreadlogd.sh.in
blob: e9643f7722dbbb360a48039476d15a64e5d628a3 (plain) (blame)
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
28
29
30
31
#!/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>"

. %%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"