update to latest version

This commit is contained in:
2016-02-26 02:22:04 +01:00
parent c6275b7557
commit 38fcc24bcc
6 changed files with 21 additions and 9 deletions

10
server/checkdnsmasq.sh Executable file
View 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