From faf0dd6aa334b5e82e39888772c3372b743e9a63 Mon Sep 17 00:00:00 2001 From: lrnzo Date: Tue, 12 Mar 2019 00:32:42 +0100 Subject: [PATCH] Update util.lua processes are really restarted now. new (old) problem: nodes will not forget their former ipv6-addresses. watchdog could here with that. --- .../gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua index 5e2193e4..833f461d 100644 --- a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua +++ b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua @@ -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")