Files
packages/net/haproxy/files/haproxy.hotplug
T
Christian Lachner c9ee50d190 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>
2019-11-03 12:36:27 +01:00

8 lines
166 B
Bash

#!/bin/sh
[ "$INTERFACE" == "wan" ] || [ "$INTERFACE" == "lan" ] || return
[ "$ACTION" == "ifup" ] &&
/etc/init.d/haproxy enabled && \
/etc/init.d/haproxy start