From 9ae856d2dc847fbaa89ebb822b8c9c0abed88c17 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 13 May 2008 20:02:56 +0000 Subject: 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 --- lib/daemoncontrol.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/daemoncontrol.lua') 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() -- cgit v1.2.3