diff options
Diffstat (limited to 'lib/daemoncontrol.lua')
-rw-r--r-- | lib/daemoncontrol.lua | 2 |
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() |