Description of problem: Somehow I got into the scenario where a failed service would not switch into the disabled state. I tried to enable it, I got a failure. Then I tried to disable it, and I got another error. Version-Release number of selected component (if applicable): [root@rlx-0-10 init.d]# rpm -qf /etc/rc.d/init.d/rgmanager rgmanager-1.9.53-0 How reproducible: always Steps to Reproduce: 1.unknown magic 2.enable service 3.get failure 4.disable service 5.get failure 6.service still in failed state Actual results: service still in failed state Expected results: service goes to disabled state Additional info: from /var/log/messages when I did, an enable then a disable Sep 25 15:36:45 rlx-0-10 clurgmgrd[26556]: <notice> Stopping service satellite-service Sep 25 15:36:45 rlx-0-10 clurgmgrd: [26556]: <info> Executing /etc/init.d/cups stop Sep 25 15:36:45 rlx-0-10 cups: cupsd shutdown failed Sep 25 15:36:45 rlx-0-10 clurgmgrd[26556]: <notice> stop on script "satellite init" returned 1 (generic error) Sep 25 15:36:45 rlx-0-10 clurgmgrd: [26556]: <info> unmounting fjs-0-10.rhndev.redhat.com:/rhnsat (/rhnsat) Sep 25 15:36:45 rlx-0-10 clurgmgrd: [26556]: <err> 'umount fjs-0-10.rhndev.redhat.com:/rhnsat' failed (/rhnsat), error=0 Sep 25 15:36:45 rlx-0-10 clurgmgrd[26556]: <notice> stop on netfs "rhnsat" returned 2 (invalid argument(s)) Sep 25 15:36:45 rlx-0-10 clurgmgrd[26556]: <crit> #12: RG satellite-service failed to stop; intervention required Sep 25 15:36:45 rlx-0-10 clurgmgrd[26556]: <notice> Service satellite-service is failed Sep 25 15:37:01 rlx-0-10 rg_test: [30675]: <info> Executing /etc/init.d/cups stop Sep 25 15:37:01 rlx-0-10 cups: cupsd shutdown failed Sep 25 15:37:01 rlx-0-10 rg_test[30675]: <notice> stop on script "satellite init" returned 1 (generic error) Sep 25 15:37:01 rlx-0-10 rg_test: [30675]: <info> unmounting fjs-0-10.rhndev.redhat.com:/rhnsat (/rhnsat) Sep 25 15:37:01 rlx-0-10 rg_test: [30675]: <err> 'umount fjs-0-10.rhndev.redhat.com:/rhnsat' failed (/rhnsat), error=0 Sep 25 15:37:01 rlx-0-10 rg_test[30675]: <notice> stop on netfs "rhnsat" returned 2 (invalid argument(s))
Created attachment 137084 [details] Fixes behavior
Created attachment 137085 [details] Corrected fix The previous patch always marked a service "disabled" even if it failed on the first attempt. It should have gone from started->failed, then failed->disabled. This patch corrects that behavior.
Fixed in CVS/head and CVS/RHEL4
Devel ACK for RHEL5.0.0 Beta 2
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering. This request is not yet committed for inclusion in release.
Moving all RHCS ver 5 bugs to RHEL 5 so we can remove RHCS v5 which never existed.