Skip to content
Snippets Groups Projects
Unverified Commit 68d970e9 authored by Ralf Jung's avatar Ralf Jung Committed by GitHub
Browse files

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

parent a77d01bb
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ local function has_mesh_vpn_neighbours() ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment