chkconfig/insserv fail to solve dependencies of services
This document (7014502) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11
Situation
Example: services blah and blob have to run after mailservice has started.
Both are configured via Should-Start:
# grep Should-Start blah blob
blah:# Should-Start: $time ypbind smtp
blob:# Should-Start: $time ypbind smtp
Yet the outcome is not what is expected:
rc3.d/S14blah -> ../blah*
rc3.d/S14postfix -> ../postfix*
rc3.d/S16blob -> ../blob*
Resolution
In the example above, service blah got two spaces between smtp and ypbind.
Correcting this gives the expected result:
# grep Should-Start blah blob
blah:# Should-Start: $time ypbind smtp
blob:# Should-Start: $time ypbind smtp
rc3.d/S14postfix -> ../postfix*
rc3.d/S16blah -> ../blah*
rc3.d/S16blob -> ../blob*
Cause
Additional Information
However the LSB examples do suggest to use a single one, so we stick with the suggestion.
Whenever writing LSB startscripts, make sure to use single spaces.
For the sake of readability extra spaces are tolerated between "Should-Start:" and the facility list:
Should-Start: boot_facility_1 [boot_facility_2...]
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:7014502
- Creation Date: 04-Feb-2014
- Modified Date:12-Oct-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com