Skip to content

Commit

Permalink
Fixed bug in tunneldigger-watchdog which caused constant restarting o…
Browse files Browse the repository at this point in the history
…f tunneldigger
  • Loading branch information
lcb01a committed Jul 4, 2016
1 parent 527e519 commit 82db19a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
PIDFILE=/var/run/tunneldigger.mesh-vpn.pid

if [ "$(uci get tunneldigger.@broker[0].enabled)" == "1" ]; then
if [ "$(pgrep tunneldigger)" != "$(cat $PIDFILE)" ]; then
if [ "$(pgrep tunneldigger | head -n 1)" != "$(cat $PIDFILE)" ]; then
/etc/init.d/tunneldigger restart
logger -t tunneldiger-watchdog "Daemon not running, restarted tunneldigger."
elif [ "$(batctl o |grep mesh-vpn |wc -l)" == "0" ]; then
Expand Down

0 comments on commit 82db19a

Please sign in to comment.