mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
haproxy: Rework hotplug script for HAProxy
- The old hotplug script caused long boot-times for r7800 and possibly others. The new script is now only triggered by iface changes for wan and lan interfaces. Signed-off-by: Christian Lachner <gladiac@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$ACTION" = add ]; then
|
||||
[ "$INTERFACE" == "wan" ] || [ "$INTERFACE" == "lan" ] || return
|
||||
[ "$ACTION" == "ifup" ] &&
|
||||
/etc/init.d/haproxy enabled && \
|
||||
/etc/init.d/haproxy start
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user