summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/daemoncontrol.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/daemoncontrol.lua b/lib/daemoncontrol.lua
index 9a13046..27564ef 100644
--- a/lib/daemoncontrol.lua
+++ b/lib/daemoncontrol.lua
@@ -11,8 +11,8 @@ function daemoncontrol (process, action)
file:close()
end
else
- cmderror = "Unknown command!"
+ return false,nil,"Unknown command!",action
end
posix.sleep(2) -- Wait for the process to start|stop
- return true, action,cmdmessage,cmderror
+ return true,cmdmessage,nil,action
end