summaryrefslogtreecommitdiff
path: root/sysutils/minirsyslogd/files/minirsyslogd.in
blob: 274741a104dbe59768b24253e090783d198b6140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# PROVIDE: minirsyslogd
# REQUIRE: DAEMON
# KEYWORD: shutdown

. /etc/rc.subr

name="minirsyslogd"
desc="Mini RSyslog Daemon"
rcvar="minirsyslogd_enable"

load_rc_config "$name"

: ${minirsyslogd_enable:="NO"}
: ${minirsyslogd_basedir:="/var/log/remote"}
: ${minirsyslogd_pidfile:="/var/run/minirsyslogd.pid"}
command="%%PREFIX%%/sbin/minirsyslogd"
pidfile="${minirsyslogd_pidfile}"
command_args="--daemon --rootdir ${minirsyslogd_basedir}"

run_rc_command "$1"