]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Specify the full path of cgrulesengd command in cgred.
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Fri, 15 May 2009 00:39:28 +0000 (09:39 +0900)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 18 May 2009 08:14:39 +0000 (13:44 +0530)
Hi,

I installed libcgroup by `make install`, and the service "cgred"
didn't work like the following:

 # service cgred start
 Starting CGroup Rules Engine Daemon...
 /bin/bash: cgrulesengd: command not found
                                                           [FAILED]
 #

The cause is why the function "daemon" cannot find cgrulesengd
command. This patch fixes the problem by specifying the full path
of cgrulesengd command.

Thanks
Ken'ichi Ohmichi

Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
scripts/init.d/cgred.in

index 3440f0ac90d876d74b0bf09f157ce1bb80aa8574..db9c2acce818ed2128d80b78a85412853ff826f5 100644 (file)
@@ -67,7 +67,7 @@ start()
                log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
                return 1
        fi
-       daemon --check $servicename --pidfile $pidfile $processname $OPTIONS
+       daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename