Bug 130451 - Services started in strange order
Summary: Services started in strange order
Status: VERIFIED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Network (show other bugs)
Version: unspecified
Hardware: x86-64 Linux
: P5 - None : Normal
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-25 10:29 UTC by Arrigo Marchiori
Modified: 2005-11-03 09:53 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
/etc/init.d/fetchmail (6.11 KB, text/plain)
2005-10-26 16:52 UTC, Arrigo Marchiori
Details
/etc/init.d/postfix (5.16 KB, text/plain)
2005-10-26 16:52 UTC, Arrigo Marchiori
Details
/etc/init.d/.depend.boot (1.41 KB, text/plain)
2005-10-26 16:53 UTC, Arrigo Marchiori
Details
/etc/init.d/.depend.start (2.93 KB, text/plain)
2005-10-26 16:53 UTC, Arrigo Marchiori
Details
/etc/init.d/.depend.stop (2.73 KB, text/plain)
2005-10-26 16:53 UTC, Arrigo Marchiori
Details
/etc/init.d/postfix (5.16 KB, text/plain)
2005-10-27 13:47 UTC, Arrigo Marchiori
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arrigo Marchiori 2005-10-25 10:29:16 UTC
The init sequence doesn't start the services in the correct order.

In my system, the services aren't started in the order they're in /etc/init.d/rc5.d. This can lead to problems, e.g. fetchmail is started before postfix, so it can't transfer the fetched message to the local server because postfix isn't running yet.

This is the content of the rc5.d directory (my default runlevel is no. 5)

K01boinc       K10alsasound     K18earlykdm     S05network       S12sshd
K03cupsrenice  K10cups          K19dbus         S06syslog        S13nfsserver
K04powersaved  K10microcode     K19resmgr       S07nmb           S13smb
K05haldaemon   K10mysql         K20earlykbd     S08portmap       S13xdm
K06cron        K10ntp           K21earlysyslog  S08splash_early  S13xinetd
K06fetchmail   K10splash        K21fbset        S10nfs           S14nscd
K07apache2     K10sshd          K21random       S10nfsboot       S14postfix
K08nscd        K12nfs           S01earlysyslog  S12acpid         S14smbfs
K08postfix     K12nfsboot       S01fbset        S12alsasound     S15apache2
K08smbfs       K14portmap       S01random       S12cups          S16cron
K09nfsserver   K14splash_early  S02earlykbd     S12kbd           S16fetchmail
K09smb         K15nmb           S03dbus         S12microcode     S17haldaemon
K09xdm         K16syslog        S03resmgr       S12mysql         S18powersaved
K09xinetd      K17network       S04boot.udev    S12ntp           S19cupsrenice
K10acpid       K18boot.udev     S04earlykdm     S12splash        S21boinc

And this is the order the services have been started today:
boinc (this should be the last one!!)
d-bus
syslog
network
random
resmgr
portmap
acpid
nfs
fetchmail
nmb
microcode
nfsboot
nfsserver
kbd
nscd
mysql
ntp
kdm
apache2
cups
postfix
smb
cron
haldaemon
powersaved
sshd
I might have missed some... but you can see they're quite messed up.

I looked at /var/log/boot.omsg and it shows that at the last boot the services were started in a different order than this time.

The OS I'm using is SuSE Linux 10.0 eval version (but I might have got some packages from an OSS repository too, after the installation)
Comment 1 Dr. Werner Fink 2005-10-25 10:56:21 UTC
You have a modified boot system.  Maybe the files

        /etc/init.d/.depend.boot
        /etc/init.d/.depend.start
        /etc/init.d/.depend.stop

are modified or the scritps like /etc/init.d/rc
and or /etc/init.d/boot or /etc/insserv.conf or
a foreign boot script breaks the dependcies.

Note, that this is WORKSFORME for more than
thousands of syststem out there.

Remove all foreign packages and run

       insserv -d

to restore your runlevel link scheme.
Comment 2 Dr. Werner Fink 2005-10-26 12:49:49 UTC
Arrigo? Any news or can I close this bugzilla entry?
Comment 3 Arrigo Marchiori 2005-10-26 16:40:43 UTC
I did that after removing the ``boinc'' initscript, that is the only unofficial one. I removed it with insserv -r and deleted the file from /etc/init.d
The order the scripts are invoked is the same I reported here: Fetchmail is still started before Postfix.
I never touched the files /etc/init.d/{rc boot} and /etc/init.d/insserv.conf
I've looked in some config files and I found that the Ãsoo called ``parallel mode'' is activated. I'Ãll now try to deactivate it and I'Ãll write here what happens.
Thank you for taking care of this! :-)
Comment 4 Dr. Werner Fink 2005-10-26 16:49:38 UTC
The problem for me is that I do not have a broken system around here,
therefore you are my eyes.  Please can you attache the files
/etc/init.d/fetchmail and /etc/init.d/postfix together with the
files /etc/init.d/.depend.boot, /etc/init.d/.depend.start and
/etc/init.d/.depend.stop.
Comment 5 Arrigo Marchiori 2005-10-26 16:52:29 UTC
Created attachment 55589 [details]
/etc/init.d/fetchmail
Comment 6 Arrigo Marchiori 2005-10-26 16:52:46 UTC
Created attachment 55590 [details]
/etc/init.d/postfix
Comment 7 Arrigo Marchiori 2005-10-26 16:53:04 UTC
Created attachment 55591 [details]
/etc/init.d/.depend.boot
Comment 8 Arrigo Marchiori 2005-10-26 16:53:17 UTC
Created attachment 55592 [details]
/etc/init.d/.depend.start
Comment 9 Arrigo Marchiori 2005-10-26 16:53:36 UTC
Created attachment 55593 [details]
/etc/init.d/.depend.stop
Comment 10 Arrigo Marchiori 2005-10-26 16:53:49 UTC
After setting RUN_PARALLEL to "no" in /etc/sysconfig/boot the services are started in the correct order.
Comment 11 Dr. Werner Fink 2005-10-27 10:55:47 UTC
OK, accordingly to /etc/init.d/.depend.start of the attachment #55592 [details]
the boot script for fetchmail does not depend on the MTA (sendmail
or postfix).

Please attache the file /etc/init.d/postfix ... I'd like to know
if this service provides `sendmail'.
Comment 12 Arrigo Marchiori 2005-10-27 13:47:48 UTC
Created attachment 55710 [details]
/etc/init.d/postfix

I think this provides sendmail
Comment 13 Dr. Werner Fink 2005-10-27 14:01:05 UTC
And does /etc/init.d/fetchmail require sendmail for start?
Comment 14 Arrigo Marchiori 2005-10-27 14:12:23 UTC
I think it does! You can see it in its header: it's attachment #55589 [details]
Comment 15 Dr. Werner Fink 2005-10-28 15:46:06 UTC
OK, I've a patch for insserv.  The problem was that postfix provides
to key words (`sendmail' and `postfix'), fetchmail reqires only one
of them (`sendmail') and the old insserv hasn't handled the duplet
fully correct.  This is fixed now.
Comment 16 Dr. Werner Fink 2005-10-28 15:53:52 UTC
FIXED for SuSE LINUX 10.1
Comment 17 Arrigo Marchiori 2005-10-28 16:36:45 UTC
Great!

So I'm waiting for it on YOU... :-)

Thank you again.
Comment 18 Dr. Werner Fink 2005-10-28 16:58:51 UTC
SWAMPID
Comment 19 Dr. Werner Fink 2005-10-28 16:59:48 UTC
Andreas? The a SWAMID is reqired for the
/work/src/done/PATCHINFO/insserv.patch.box
Comment 20 Andreas Jaeger 2005-11-02 08:58:07 UTC
Werner, next time please use: NEEDINFO: aj@suse.de for the swampid.

Maintenance-Tracker-2716
Comment 21 Dr. Werner Fink 2005-11-02 10:59:54 UTC
FIXED
Comment 22 Anja Stock 2005-11-03 09:53:05 UTC
released