Created
February 1, 2016 04:11
-
-
Save HackingGate/ebaa3279e989aaf6a334 to your computer and use it in GitHub Desktop.
A watchdog for Pcap-DNSProxy on OpenWrt
This file contains hidden or 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
| PROG=/usr/sbin/Pcap_DNSProxy | |
| LOGTIME=$(date "+%Y-%m-%d %H:%M:%S") | |
| if [ $(ps|grep ${PROG}|grep -v grep|wc -l) -ge 1 ]; then | |
| echo "['$LOGTIME'] Pcap_DNSProxy is running, PID is $(pidof ${PROG##*/})" | |
| else | |
| echo "['$LOGTIME'] Pcap_DNSProxy is not running." | |
| /etc/init.d/pcap-dnsproxy start | |
| fi |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To clean dns: