From c6fff673cf5a1debc780835f5144e40c9ef8dffb Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 1 Feb 2008 13:39:34 +0000 Subject: Chaning the way this lib reports back status git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@673 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/daemoncontrol.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3