Skip to content

Instantly share code, notes, and snippets.

@requeijaum
Last active July 18, 2019 15:53
Show Gist options
  • Save requeijaum/dc650ad9ca0f54c7a3dfb9f82c5d8adb to your computer and use it in GitHub Desktop.
Save requeijaum/dc650ad9ca0f54c7a3dfb9f82c5d8adb to your computer and use it in GitHub Desktop.
Fix my pihole install on Odroid C2 with Ubuntu 16.04 LTS. BIND9 must be kidding with me, since pihole uses dns-masq (and we need to install a specific version of it). I have this script setup on my crontab running every 30 minutes. That's important because my little Odroid is the DNS Cache for my home LAN.
#!/bin/bash
service bind9 stop
pgrep pihole-FTL
if [ $? -gt 0 ]
then
pihole-FTL
else
echo "pihole-FTL's process is already running!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment