Skip to content

Commit

Permalink
smart restart
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Dec 25, 2023
1 parent 1f815d9 commit bef7b33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/rootfs/restart-dnsmasq.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/ash

killall dnsmasq ; dnsmasq
# if there is a running dnsmasq process, kill it and start a new one
ps | grep dnsmasq | grep -v grep | awk '{print $1}' | xargs kill -9
dnsmasq

0 comments on commit bef7b33

Please sign in to comment.