mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
keepalived: Move change of conntrack sysctl option into package
The setting cannot be set on the default system because the ip_vs module is not loaded by default and there is no reason to load it just because we would be able to set the setting. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -13,6 +13,12 @@
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
# Load IPVS module
|
||||
modprobe ip_vs
|
||||
|
||||
# Enable connection tracking for IPVS
|
||||
sysctl -w net.ipv4.vs.conntrack=1 &>/dev/null
|
||||
|
||||
boot_mesg "Starting keepalive daemon..."
|
||||
loadproc /usr/sbin/keepalived ${KEEPALIVED_OPTIONS}
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user