From 20f24274f8e4a842621189af680044e0a4948bdd Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 15 May 2009 09:39:28 +0900 Subject: [PATCH] Specify the full path of cgrulesengd command in cgred. 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 Signed-off-by: Dhaval Giani --- scripts/init.d/cgred.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init.d/cgred.in b/scripts/init.d/cgred.in index 3440f0ac..db9c2acc 100644 --- a/scripts/init.d/cgred.in +++ b/scripts/init.d/cgred.in @@ -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 -- 2.47.2