Created
February 17, 2023 08:59
-
-
Save marvin-marvin/1b6bc8821c499ae0ea3a57ccb2738444 to your computer and use it in GitHub Desktop.
startifdown_pihole-FTL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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