summaryrefslogtreecommitdiff
path: root/sysutils/cluster-glue/files/ha_logd.in
blob: 2488ead24161421f990e131b7a9c70efdf39a76a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# PROVIDE: ha_logd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# ha_logd_enable="YES"
#

. /etc/rc.subr

: ${ha_logd_enable:=NO}

name=ha_logd
rcvar=ha_logd_enable
command="%%PREFIX%%/lib/heartbeat/ha_logd"
command_args="-d"
pidfile="/var/run/ha_logd.pid"

load_rc_config ${name}
run_rc_command "$1"