summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-02-01 13:39:34 +0000
committerMika Havela <mika.havela@gmail.com>2008-02-01 13:39:34 +0000
commitc6fff673cf5a1debc780835f5144e40c9ef8dffb (patch)
tree1a30bb8e50adc38ec84487f5597555bc66969762 /lib
parent9cd01527b032b6e3c8be2b6806b5d26041f9e48c (diff)
downloadacf-core-c6fff673cf5a1debc780835f5144e40c9ef8dffb.tar.bz2
acf-core-c6fff673cf5a1debc780835f5144e40c9ef8dffb.tar.xz
Chaning the way this lib reports back status
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@673 ab2d0c66-481e-0410-8bed-d214d4d58bed
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