bug 4287: redhat rc script ought to return RETVAL and not just 0. also fix small issue with default in case statement.