c49d1a3273
We have not checked for this KEYWORD for a long time now, so this is a complete noop, and thus no PORTREVISION bump. Removing it at this point is mostly for pedantic reasons, and partly to avoid perpetuating this anachronism by copy and paste to future scripts.
33 lines
710 B
Bash
33 lines
710 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# 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.
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="keepalived"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/sbin/keepalived"
|
|
pidfile="/var/run/keepalived.pid"
|
|
required_files=%%PREFIX%%/etc/keepalived/keepalived.conf
|
|
|
|
[ -z "${keepalived_enable}" ] && keepalived_enable="NO"
|
|
|
|
load_rc_config $name
|
|
|
|
sig_reload=SIGHUP
|
|
|
|
extra_commands="reload"
|
|
run_rc_command "$1"
|