From baafb4a40b48bdf04b423a81ef9b91238c9c0efc Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 9 May 2023 14:38:54 +0000 Subject: T5209: Add sudo for user signal wan_lb PID Lack of privilegies for 'kill -s SIGUSR2 $( cat $pid )' it caues 04-dhcp-wanlb hook exit with nonzero exit code after renew dhcp lease --- scripts/dhcp/04-dhcp-wanlb | 2 +- scripts/ppp/04-ppp-wanlb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dhcp/04-dhcp-wanlb b/scripts/dhcp/04-dhcp-wanlb index 07f5ba3..949fbb1 100644 --- a/scripts/dhcp/04-dhcp-wanlb +++ b/scripts/dhcp/04-dhcp-wanlb @@ -1,4 +1,4 @@ pid=/var/run/vyatta/wlb.pid if [ -f $pid ]; then - kill -s SIGUSR2 $( cat $pid ) 2>/dev/null + sudo kill -s SIGUSR2 $( cat $pid ) 2>/dev/null fi diff --git a/scripts/ppp/04-ppp-wanlb b/scripts/ppp/04-ppp-wanlb index f3411cb..9cc50ee 100644 --- a/scripts/ppp/04-ppp-wanlb +++ b/scripts/ppp/04-ppp-wanlb @@ -5,5 +5,5 @@ echo $5 > /var/run/load-balance/ppp/$6 pid=/var/run/vyatta/wlb.pid if [ -f $pid ]; then - kill -s SIGUSR2 $( cat $pid ) 2>/dev/null + sudo kill -s SIGUSR2 $( cat $pid ) 2>/dev/null fi -- cgit v1.2.3