diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-05-09 14:38:54 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-05-09 14:38:54 +0000 |
commit | baafb4a40b48bdf04b423a81ef9b91238c9c0efc (patch) | |
tree | 11f03844ff769ffbe1b8b969d803b64fdd640503 | |
parent | 70eff8e0ab776aabfc2058353d8a5d51b60d1deb (diff) | |
download | vyatta-wanloadbalance-baafb4a40b48bdf04b423a81ef9b91238c9c0efc.tar.gz vyatta-wanloadbalance-baafb4a40b48bdf04b423a81ef9b91238c9c0efc.zip |
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
-rw-r--r-- | scripts/dhcp/04-dhcp-wanlb | 2 | ||||
-rw-r--r-- | 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 |