Update util.lua

processes are really restarted now. new (old) problem: nodes will not forget their former ipv6-addresses. watchdog could here with that.
This commit is contained in:
lrnzo 2019-03-12 00:32:42 +01:00 committed by Jan-Tarek Butt
parent 6f90fd7f3d
commit faf0dd6aa3

View File

@ -140,7 +140,7 @@ function M.restart_services()
"gluon-respondd",
}
for proc in ipairs(proc_tbl) do
for i, proc in ipairs(proc_tbl) do
if unistd.access("/etc/init.d/"..proc, "x") == 0 then
print(proc.." restarting ...")
os.execute("/etc/init.d/"..proc.." restart")