gluon-mesh-vpn-tunneldigger: only search for exactly the tunneldigger binary in watchdog (#1953)

(cherry picked from commit 68d970e91b)
This commit is contained in:
Ralf Jung 2020-03-08 13:42:25 +01:00 committed by Martin Weinelt
parent 447595f0bb
commit c4d38a2ea9

View File

@ -33,7 +33,7 @@ local function has_mesh_vpn_neighbours()
end end
if uci:get_bool('tunneldigger', 'mesh_vpn', 'enabled') then 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."') os.execute('logger -t tunneldigger-watchdog "Process-Pid does not match with pid-File."')
restart_tunneldigger() restart_tunneldigger()
return return