Commit 0bb77f99 authored by Ted Trask's avatar Ted Trask

Modified status to check pid, because there is no init.d script. Bumped to revision 0.1.1

parent 7a7408ec
APP_NAME=ppp
PACKAGE=acf-$(APP_NAME)
VERSION=0.1.0
VERSION=0.1.1
APP_DIST=\
ppp* \
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment