diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-02-23 19:28:11 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-02-23 19:28:11 +0000 |
commit | d6a3522c8ece4d9b249b259a45082996ef9e9489 (patch) | |
tree | e1c13269fb6b1676bbae28ca794bb705a40b65e4 | |
parent | b4d98246f8f50fd185ca6c141ee1564c5a8e3c26 (diff) | |
download | acf-lib-d6a3522c8ece4d9b249b259a45082996ef9e9489.tar.bz2 acf-lib-d6a3522c8ece4d9b249b259a45082996ef9e9489.tar.xz |
Modified processinfo daemon_actions to include status and actions with special characters
-rw-r--r-- | processinfo.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/processinfo.lua b/processinfo.lua index 0adb3f4..34403d3 100644 --- a/processinfo.lua +++ b/processinfo.lua @@ -127,7 +127,7 @@ function daemoncontrol (process, action) end function daemon_actions (process) - local actions = {"start", "stop", "restart", "describe", "zap"} + local actions = {"status", "start", "stop", "restart", "describe", "zap"} local description local res, err = daemoncontrol(process, "describe") if err then @@ -136,7 +136,7 @@ function daemon_actions (process) lines = format.string_to_table(res, "\n") description = string.match(lines[1], "^%s*%*%s*(.*)") for i=2,#lines,1 do - actions[#actions+1] = string.match(lines[i], "^%s*%*%s*(%w*)") + actions[#actions+1] = string.match(lines[i], "^%s*%*%s*([^:]*)") end end return actions, description |