libcgroup: Minor fixes to the initscripts 1. Check for the return value of cgconfigparser 2. Remove the unneeded check for tasks moved into default cgroup
Signed-off-by: Dhaval Giani <[email protected]> --- scripts/init.d/cgconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Index: trunk/scripts/init.d/cgconfig =================================================================== --- trunk.orig/scripts/init.d/cgconfig 2009-01-09 16:23:07.000000000 +0530 +++ trunk/scripts/init.d/cgconfig 2009-01-20 17:08:56.000000000 +0530 @@ -81,6 +81,10 @@ start() { then #log_progress_msg "Starting cgconfig service: " cgconfigparser -l $CONFIG_FILE + if [ $? -ne 0 ] + then + return $? + fi fi declare defaultcgroup @@ -132,7 +136,7 @@ start() { done done - [ $? == 0 ] && touch /var/lock/subsys/$servicename + touch /var/lock/subsys/$servicename return $? } -- regards, Dhaval ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
