gluon-mesh-vpn-tunneldigger: only search for exactly the tunneldigger binary in watchdog (#1953)
This commit is contained in:
parent
a77d01bb46
commit
68d970e91b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user