mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-05 10:39:23 +00:00
odhcpd: Use procd_send_signal in odhcpd-update file
Let dnsmasq reread the leasefile by using procd_send_signal which triggers procd to send SIGHUP kill signal by default if signal is not specified Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
This commit is contained in:
parent
05abcf518d
commit
00dbfa1764
@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Make dnsmasq reread hostfile
|
# Make dnsmasq reread hostfile by sending SIGHUP signal
|
||||||
|
|
||||||
pid=$(pidof dnsmasq)
|
. $IPKG_INSTROOT/lib/functions/procd.sh
|
||||||
|
|
||||||
for i in $pid; do
|
procd_send_signal dnsmasq
|
||||||
[ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i
|
|
||||||
done
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user