Skip to content
Snippets Groups Projects
Commit 00dbfa17 authored by Hans Dedecker's avatar Hans Dedecker
Browse files

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: default avatarHans Dedecker <dedeckeh@gmail.com>
parent 05abcf51
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment