gluon-mesh-vpn-tunneldigger: only search for exactly the tunneldigger binary in watchdog

This commit is contained in:
Ralf Jung 2020-03-08 13:37:29 +01:00
parent a77d01bb46
commit 42f3b8d0c0

View File

@ -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