update to latest version
This commit is contained in:
10
server/checkdnsmasq.sh
Executable file
10
server/checkdnsmasq.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -e /etc/cron.d/checkdnsmasq ]; then
|
||||
echo "* * * * * root /root/tareo-scripts/server/checkdnsmasq.sh" > /etc/cron.d/checkdnsmasq
|
||||
fi
|
||||
|
||||
if [ "$(service dnsmasq status | tail -n 1 | grep -q "(running)"; echo $?)" != "0" ]; then
|
||||
echo "dnsmasq not running, restart now"
|
||||
service dnsmasq restart
|
||||
fi
|
||||
Reference in New Issue
Block a user