Thanks, Jon. How does sles set the sequence? K21foo K20bar Where is the settings that drive the sequence order of startup and shutdown of daemon? Thanks, West On Wed, Aug 4, 2010 at 4:39 PM, Jon Clausen <jon@ymmv.dk> wrote:
On Wed, 04 Aug, 2010 at 15:55:28 +0800, west alto wrote:
Hi Gurus,
How can i adjust the shutdown or startup priority sles10sp3?
On SLES10* shutdown sequence is not easily tweaked.
The order of startup/shutdown is defined using dependencies specified in the LSB headers of the init scripts themselves. Unfortunately, however, the *-stop dependencies are ignored on SLE*10*
Here what is inside my:
/etc/init.d/rc3.d K21PowerPath K21naviagent S01PowerPath S01naviagent
/etc/sysconfig/boot RUN_PARALLEL=yes
When it enters the runlevel 3 naviagent starts first then followed by PowerPath. When it leaves the runlevel 3 PowerPath stops first (which gives an error that naviagent still running), then stops other daemon, then stops naviagent
I'm not familiar with either naviagent or PowerPath (a quick search indicates it's some SAN management thingy?) but I'm guessing it's fairly important that they get shut down in the proper sequence.
Is there a way to reverse the shutdown so the naviagent will stop first followed by PowerPath.
I had a similar situation with NSS storage on iSCSI a while back. In short, the system would consistently shut down iSCSI before NSS was unmounted.
To work around the issue, I ended up creating a dedicated 'unmount NSS' init script which had the following behaviour:
@start: do nothing @stop: unmount the pertinent NSS volumes
Then I experimented with the 'start' dependencies of that script, until chkconfig would place it at the correct point in the stop sequence.
I change K21naviagent to K20naviagent in /etc/init.d/rc3.d and RUN_PARALLEL=no in /etc/sysconfig/boot but still PowerPath shutdown first then naviagent.
RUN_PARALLEL=no is probably a good idea. It will certainly make things more predictable.
Manually changing the links OTOH is not a good idea. The next time chkconfig is invoked, it *will* change the links back to whatever it deems correct.
hth /jon -- YMMV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org