summaryrefslogtreecommitdiffstats
path: root/lib/daemoncontrol.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-05-13 20:02:56 +0000
committerTed Trask <ttrask01@yahoo.com>2008-05-13 20:02:56 +0000
commit9ae856d2dc847fbaa89ebb822b8c9c0abed88c17 (patch)
treeedaa89f03c726807529edc61cfa9645e5ded2f68 /lib/daemoncontrol.lua
parent509cb63a9c2f7807a186b19f33af8adc56ee1c82 (diff)
downloadacf-core-9ae856d2dc847fbaa89ebb822b8c9c0abed88c17.tar.bz2
acf-core-9ae856d2dc847fbaa89ebb822b8c9c0abed88c17.tar.xz
Rewrote syslog to use components and remove view-specific code from controller.
Also made sure not to write to conf file unless all variables pass validation. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1116 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/daemoncontrol.lua')
-rw-r--r--lib/daemoncontrol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/daemoncontrol.lua b/lib/daemoncontrol.lua
index 27564ef..db9423c 100644
--- a/lib/daemoncontrol.lua
+++ b/lib/daemoncontrol.lua
@@ -5,7 +5,7 @@ function daemoncontrol (process, action)
local cmdmessage = ""
if (string.lower(action) == "start") or (string.lower(action) == "stop") or (string.lower(action) == "restart") then
local file = io.popen( "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin /etc/init.d/" ..
- process .. " " .. action .. " 2>&1" )
+ process .. " " .. string.lower(action) .. " 2>&1" )
if file ~= nil then
cmdmessage = file:read( "*a" )
file:close()