8 lines
271 B
Bash
Executable File
8 lines
271 B
Bash
Executable File
#!/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
|