On Thu, Jan 16, 2003 at 06:46:34PM -0600, Josh Trutwin wrote:
Hi,
I've looked through all the sysconfig options in Yast2, but I cannot find what causes SuSEconfig to reset my custom scripts in /etc/init.d
Any time the system runs SuSEconfig, my links in /etc/init.d/rc5.d (and rc3.d) get reset to S01. For example, S12postgresql is changed to S01postgresql. This is inconvenient as the network doesn't start until S05network. Is there a way I can tell SuSEconfig to stop this? It doesn't seem to mind the stop scripts....
Instead of assigning number manually you might want to put appropriate headers into your script--please see man page for insserv. The headers look like: ### BEGIN INIT INFO # Provides: boot_facility_1 [ boot_facility_2 ...] # Required-Start: boot_facility_1 [ boot_facility_2 ...] # Required-Stop: boot_facility_1 [ boot_facility_2 ...] # Default-Start: run_level_1 [ run_level_2 ...] # Default-Stop: run_level_1 [ run_level_2 ...] # Description: multiline_description ### END INIT INFO Based on dependencies specified in the headers insserv will calculate S?? number appropriate for your script. HTH, -Kastus