#!/bin/sh
#
# $FreeBSD: ports/net/keepalived/files/keepalived.sh.in,v 1.2 2006/02/20 20:47:26 dougb Exp $
#

# PROVIDE: keepalived
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable apache2:
# apache2_keepalived (bool):  Set to "NO" by default.
#                             Set it to "YES" to enable keepalived
# apache2_profiles (string):  Undefined by default. Define here your profiles.

. /etc/rc.subr

name="keepalived"
rcvar=`set_rcvar`

command="/usr/local/sbin/keepalived"
pidfile="/var/run/keepalived.pid"
required_files=/usr/local/etc/keepalived/keepalived.conf

[ -z "${keepalived_enable}" ]       && keepalived_enable="NO"

load_rc_config $name

sig_reload=SIGHUP

extra_commands="reload"
run_rc_command "$1"
