Skip to content
Snippets Groups Projects
Commit c4d38a2e authored by Ralf Jung's avatar Ralf Jung Committed by Martin Weinelt
Browse files

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

(cherry picked from commit 68d970e9)
parent 447595f0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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