From c4d38a2ea9f4624315cf201bbabf6b56e996cf5d Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 8 Mar 2020 13:42:25 +0100 Subject: [PATCH] gluon-mesh-vpn-tunneldigger: only search for exactly the tunneldigger binary in watchdog (#1953) (cherry picked from commit 68d970e91b3642aa531957bc5b6cb00b8718b0eb) --- .../luasrc/usr/bin/tunneldigger-watchdog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-mesh-vpn-tunneldigger/luasrc/usr/bin/tunneldigger-watchdog b/package/gluon-mesh-vpn-tunneldigger/luasrc/usr/bin/tunneldigger-watchdog index 7425a55d..e1b55a43 100755 --- a/package/gluon-mesh-vpn-tunneldigger/luasrc/usr/bin/tunneldigger-watchdog +++ b/package/gluon-mesh-vpn-tunneldigger/luasrc/usr/bin/tunneldigger-watchdog @@ -33,7 +33,7 @@ local function has_mesh_vpn_neighbours() end if uci:get_bool('tunneldigger', 'mesh_vpn', 'enabled') then - if io.popen('pgrep tunneldigger'):read('*l') ~= read_pid_file() then + if io.popen('pgrep -x /usr/bin/tunneldigger'):read('*l') ~= read_pid_file() then os.execute('logger -t tunneldigger-watchdog "Process-Pid does not match with pid-File."') restart_tunneldigger() return