summaryrefslogtreecommitdiffstats
path: root/lib/modelfunctions.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-25 19:12:54 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-25 19:12:54 +0000
commit493d9b8bf842a8b7e781f1672d4792fb84c79b16 (patch)
tree81de47905ba8404d3cb54fcdd398f3897624dfa8 /lib/modelfunctions.lua
parentd7dd7e74c68f715655c5c4e497b9f82ef336202e (diff)
downloadacf-core-493d9b8bf842a8b7e781f1672d4792fb84c79b16.tar.bz2
acf-core-493d9b8bf842a8b7e781f1672d4792fb84c79b16.tar.xz
Moved procps and daemoncontrol functionality into processinfo.lua and deleted procps.lua and daemoncontrol.lua. This saves space on the server.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1519 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/modelfunctions.lua')
-rw-r--r--lib/modelfunctions.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua
index 7b8e735..9dd1d6b 100644
--- a/lib/modelfunctions.lua
+++ b/lib/modelfunctions.lua
@@ -2,13 +2,11 @@ module(..., package.seeall)
-- Load libraries
require("fs")
-require("procps")
-require("daemoncontrol")
require("processinfo")
function getenabled(processname)
local result = cfe({ label = "Program status" })
- local t = procps.pidof(processname)
+ local t = processinfo.pidof(processname)
if (t) and (#t > 0) then
result.value = "Enabled"
else
@@ -19,7 +17,7 @@ end
function startstop_service(processname, action)
-- action is validated in daemoncontrol
- local cmdresult,cmdmessage,cmderror,cmdaction = daemoncontrol.daemoncontrol(processname, action)
+ local cmdresult,cmdmessage,cmderror,cmdaction = processinfo.daemoncontrol(processname, action)
return cfe({ value=cmdmessage or "", errtxt=cmderror, label="Start/Stop result" })
end