summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2009-05-15 09:39:28 +0900
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-05-18 13:44:39 +0530
commit20f24274f8e4a842621189af680044e0a4948bdd (patch)
tree2ea796fad6ab7dbddcf4f7db45c5b842f7743135
parenta136cb2d61f43bdd00076374ac174f70b7e31c42 (diff)
downloadlibcg-20f24274f8e4a842621189af680044e0a4948bdd.tar.gz
libcg-20f24274f8e4a842621189af680044e0a4948bdd.tar.xz
libcg-20f24274f8e4a842621189af680044e0a4948bdd.zip
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 <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
-rw-r--r--scripts/init.d/cgred.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/init.d/cgred.in b/scripts/init.d/cgred.in
index 3440f0a..db9c2ac 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