Required-Stop $all Script parameter in Sles11 Sp1

This document (7007281) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 1

Situation

The script parameter required-stop $all means that all services must be running before your custom script is stopped. This means that the unload script will usually be placed in the k01 priority unload group, and cannot be changed as far as unload priority. The custom script will always be unloaded first, before other system scripts in the /etc/init.d/rc.x dirs.
The required-start $all is different. The custom script can be changed to a different load order such as S01, S02, etc. The load/unload order of service scripts are placed in the load/unload priority groups based on the header information when the script is created. Insserv places them in the rc.d directory based on the runlevel the script was configured with. Insserv -r removes the script from the runlevel dirs.
 
There was a misunderstanding about the required-stop $all parm. Some have thought this meant that all other services had to unload before your custom script does. This is not the case in sles11 sp1. It means that all scripts have to still be running before your script unloads. Hence your custom script will always be placed in the K01 unload group, in the various rc.d dirs, so that it unloads first. This cannot be changed.

Resolution

Additional Information

 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7007281
  • Creation Date: 01-Dec-2010
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center