8 lines
271 B
Plaintext
8 lines
271 B
Plaintext
|
#!/bin/sh
|
||
|
PIDFILE=/var/run/tunneldigger.mesh-vpn.pid
|
||
|
|
||
|
if [ "$(pgrep tunneldigger)" != "$(cat $PIDFILE)" ] && [ "$(uci get tunneldigger.@broker[0].enabled)" == "1" ]; then
|
||
|
/etc/init.d/tunneldigger restart
|
||
|
logger -t tunneldiger-watchdog "Restarted Tunneldigger"
|
||
|
fi
|