insserv does not recognize $ALL in system startup scripts
This document (7002245) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 10 SP2
Situation
For example, Required-Start in /etc/init.d/cron looks like this:
# Required-Start: $remote_fs $syslog $time
It indicates that three services/scripts (remote_fs, syslog and time) should be started before cron is started.
One of the facilities is $ALL, indicating that the script should be placed at the end. $ALL is not used in any of the startscripts, but can be used by a user who wants to change the start order of some scripts or insert their own scripts and let them start at the end.
Below is an example of the startscript: FOO header, indicating that FOO should start at the end of the boot process (in runlevel 3 and 5):
### BEGIN INIT INFO
# Provides: FOO
# Required-Start: $FOO
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description:
### END INIT INFO
Although chkconfig inserts the script at the end of the start process in runlevels
it should start, $ALL does not work. The script is started first in the boot order.
It only happens, if $ALL is used by itself.
If any other service is specified with $ALL on the Required-Start: line, it works as expected.
# Required-Start: $syslog $ALL
or
# Required-Start: $syslog
# Should-Start: $ALL
will work as expected.
# Required-Start: $ALL
or # Required-Start:
# Should-Start: $ALL
will NOT work.
Resolution
- Use another service/script along with $ALL and the script will start at the end.
- In the /etc/sysconfig/boot file set RUN_PARALLEL='no'.
The update to SUSE Linux Enterprise Server 10 Service Pack 3 corrects the problem.
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:7002245
- Creation Date: 11-Mar-2009
- Modified Date:24-Feb-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com