summaryrefslogtreecommitdiffstats
path: root/ppp-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-07-13 14:04:33 +0000
committerTed Trask <ttrask01@yahoo.com>2009-07-13 14:04:33 +0000
commit0bb77f99d78599fd5a55856eb948b608385f7a35 (patch)
tree0f76dbb2929e2bff07735bc9940e583846ee5cad /ppp-model.lua
parent7a7408ecceed35da6a5d28088b29e3dcc03c70d6 (diff)
downloadacf-ppp-0.1.1.tar.bz2
acf-ppp-0.1.1.tar.xz
Modified status to check pid, because there is no init.d script. Bumped to revision 0.1.1v0.1.1
Diffstat (limited to 'ppp-model.lua')
-rw-r--r--ppp-model.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/ppp-model.lua b/ppp-model.lua
index 0260533..31f7365 100644
--- a/ppp-model.lua
+++ b/ppp-model.lua
@@ -31,8 +31,14 @@ function getstatus()
errtxt=errtxt,
name=packagename
})
-
- status.status = modelfunctions.getenabled(processname)
+
+ status.status = cfe({ label = "Program status", name=processname })
+ local t = processinfo.pidof(processname)
+ if (t) and (#t > 0) then
+ status.status.value = "Started"
+ else
+ status.status.value = "Stopped"
+ end
return cfe({ type="group", value=status, label="PPP Status" })
end