diff options
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r-- | shorewall-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua index 311ad86..b6f6c39 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -31,11 +31,11 @@ function check_config () end function restart_service () - -- FIXME: Read getstatus AFTER restart so the new 'restart date' is shown. - local status = get_status() local f,err = io.popen("/etc/init.d/shorewall restart") - status.restart = f:read("*a") + local restart = f:read("*a") f:close() + local status = get_status() + status.restart = restart return status end |