Skip to content

Instantly share code, notes, and snippets.

@marvin-marvin
Created February 17, 2023 08:59
Show Gist options
  • Save marvin-marvin/1b6bc8821c499ae0ea3a57ccb2738444 to your computer and use it in GitHub Desktop.
Save marvin-marvin/1b6bc8821c499ae0ea3a57ccb2738444 to your computer and use it in GitHub Desktop.
startifdown_pihole-FTL
#!/bin/bash
#Scripts to start services if not running
ps -ef | grep pihole-FTL |grep -v grep > /dev/null
if [ $? != 0 ]
then
systemctl restart pihole-FTL >> /var/log/pihole_autorestart.log
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment