From: Ivana Varekova Date: Wed, 25 Mar 2009 07:55:57 +0000 (+0100) Subject: Minor fix to cgconfig init script X-Git-Tag: v0.34~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3275fd8210f689a6ea49a62aed4d4b460d4c26c7;p=thirdparty%2Flibcgroup.git Minor fix to cgconfig init script cgconfig script does not test the return value of cgconfigparser command so it continues to simulate start of the service, even if it was not pass successfuly. This is the first part of the patch from: http://sourceforge.net/mailarchive/forum.php?thread_name=20090120121851.GC4422%40linux.vnet.ibm.com&forum_name=libcg-devel which was not incorporated yet. Signed-off-by: Ivana Varekova Signed-off-by: Dhaval Giani --- diff --git a/scripts/init.d/cgconfig b/scripts/init.d/cgconfig index 1c60b868..6e6bcd69 100644 --- a/scripts/init.d/cgconfig +++ b/scripts/init.d/cgconfig @@ -79,6 +79,11 @@ start() { then #log_progress_msg "Starting cgconfig service: " cgconfigparser -l $CONFIG_FILE + retval=$? + if [ $retval -ne 0 ] + then + return $retval + fi fi declare defaultcgroup