Running services at boot on 11.2

After upgrade of 11.1 to 11.2 I noticed that none of services that was started in 11.1 at boot are starting now in 11.2. I check run-level of services with

chkconfig --list

and everything is as like was before the upgrade.
When I start services manually everything is OK, but on restart they do not starting.
Another weired thing is that my SuSEfirewall2 is filtering everything on input, nevertheless my previous configuration is still there, but ports are closed.
Can anyone help me on this ?

Can anyone tell at least how can I find script which start services on different run-levels, I suspect that after upgrade it’s not working properly (this relates to SuSEfirewall2 too).

The init level scripts are run from entries in /etc/inittab, i.e. these:

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
#l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6

However before you tinker too much bear in mind that if you are getting a GUI in level 5, then at least some scripts are running.

Hi
Use chkconfig;


ckkconfig
chkconfig <servicename>
chkconfig <servicename> on


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 11 days 18:07, 4 users, load average: 0.47, 0.14, 0.04
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Thank you for quick answers.
I am upgrading OpenSuSE since 10.3 and so far everything went smoothly until now.
I already used

chkconfig <service-name> --level 235 on 

to configure which services on which run-levels have to be started and when I use

chkconfig --list

it shows them as they should, but after rebooting the machine they are stopped and I have to run them manually again.
Any ideas ?

There are a few cache files in /etc/init.d staring with .depend. You could delete those and recreate them by running /sbin/SuSEconfig.

I have these in /etc/inittab:


l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
#l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6

Also I used :

/sbin/SuSEconfig

but it didn’t helped.
After rebooting the result is the same - the services are not running.

Perhaps you could add “set -v” near the top of one of those scripts to produce output so you can see why it isn’t running at boot.

where exactly I have to put

set -v

?
Is there any logs I should look into, so I can determine the reason of not running services at boot ?
The strange thing is that firewall is running at boot, but the configuration is not that I setup in YAST2.
When I stop running firewall at boot and start it manually the configuration of firewall is the correct one…

Before the first executable line.

Which file, I meant, and look at the end of my previous post.

Probably /var/log/messages. Or maybe the console, tty1.

There are no errors in my /var/log/messages.

The strange thing is that firewall is running at boot, but the configuration is not that I setup in YAST2.
When I stop running firewall at boot and start it manually the configuration of firewall is the correct one…

Sounds like you have a mix of old and new init scripts.

It sounds reasonable. What can I do about it ?

First work out what is happening, what scripts are getting invoked, what scripts are not getting invoked and see if there is an explanation.

Something that occurred to me: Many services depend on $network being provided. If they think the network is not up they just exit.

How can this happen, bearing in mind that network is starting at run-level 2, but the most of services that I am starting are at run-level 3 of 5 i.e.$network is already started.
Here is my

chkconfig --list

SuSEfirewall2_init        0:off  1:off  2:off  3:on   4:on   5:on   6:off
SuSEfirewall2_setup       0:off  1:off  2:off  3:on   4:on   5:on   6:off
aaeventd                  0:off  1:off  2:off  3:off  4:off  5:off  6:off
acpid                     0:off  1:off  2:on   3:on   4:off  5:on   6:off
alsasound                 0:off  1:off  2:on   3:on   4:off  5:on   6:off
apache2                   0:off  1:off  2:off  3:on   4:off  5:on   6:off
atd                       0:off  1:off  2:off  3:off  4:off  5:off  6:off
auditd                    0:off  1:off  2:off  3:on   4:off  5:on   6:off
autofs                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
autoyast                  0:off  1:off  2:off  3:off  4:off  5:off  6:off
avahi-daemon              0:off  1:off  2:off  3:on   4:off  5:on   6:off
avahi-dnsconfd            0:off  1:off  2:off  3:on   4:off  5:on   6:off
bluez-coldplug            0:off  1:off  2:on   3:on   4:off  5:on   6:off
clamav-milter             0:off  1:off  2:off  3:off  4:off  5:off  6:off
clamd                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
cron                      0:off  1:off  2:on   3:on   4:off  5:on   6:off
cups                      0:off  1:off  2:on   3:on   4:off  5:on   6:off
dbus                      0:off  1:off  2:on   3:on   4:off  5:on   6:off
ddclient                  0:off  1:off  2:off  3:on   4:off  5:on   6:off
dhcpd                     0:off  1:off  2:off  3:on   4:off  5:on   6:off
dnsmasq                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
earlysyslog               0:off  1:off  2:off  3:off  4:off  5:on   6:off
earlyxdm                  0:off  1:off  2:off  3:off  4:off  5:on   6:off
esound                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
ez-ipupdate               0:off  1:off  2:off  3:off  4:off  5:off  6:off
fbset                     0:off  1:on   2:on   3:on   4:off  5:on   6:off
fetchmail                 0:off  1:off  2:off  3:on   4:off  5:on   6:off
freshclam                 0:off  1:off  2:off  3:off  4:off  5:off  6:off
gpm                       0:off  1:off  2:off  3:off  4:off  5:off  6:off
haldaemon                 0:off  1:off  2:on   3:on   4:off  5:on   6:off
hsf                       0:off  1:off  2:off  3:on   4:off  5:on   6:off
irda                      0:off  1:off  2:off  3:off  4:off  5:off  6:off
irq_balancer              0:off  1:on   2:on   3:on   4:off  5:on   6:off
ivman                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
joystick                  0:off  1:off  2:off  3:off  4:off  5:off  6:off
kbd                       0:off  1:on   2:on   3:on   4:off  5:on   6:off  S:on 
ksysguardd                0:off  1:off  2:off  3:off  4:off  5:off  6:off       
ldap                      0:off  1:off  2:off  3:off  4:off  5:off  6:off       
lirc                      0:off  1:off  2:off  3:off  4:off  5:off  6:off       
lisa                      0:off  1:off  2:off  3:on   4:off  5:on   6:off       
lm_sensors                0:off  1:off  2:on   3:on   4:off  5:on   6:off       
mdadmd                    0:off  1:off  2:off  3:off  4:off  5:off  6:off       
microcode.ctl             0:off  1:off  2:off  3:off  4:off  5:off  6:off       
multipathd                0:off  1:off  2:off  3:off  4:off  5:off  6:off       
mysql                     0:off  1:off  2:on   3:on   4:off  5:on   6:off       
nagios                    0:off  1:off  2:off  3:on   4:off  5:on   6:off       
named                     0:off  1:off  2:off  3:off  4:off  5:off  6:off       
network                   0:off  1:off  2:on   3:on   4:off  5:on   6:off       
network-remotefs          0:off  1:off  2:on   3:on   4:off  5:on   6:off       
nfs                       0:off  1:off  2:off  3:on   4:off  5:on   6:off       
nfsserver                 0:off  1:off  2:off  3:off  4:off  5:off  6:off       
nmb                       0:off  1:off  2:off  3:on   4:off  5:on   6:off       
nscd                      0:off  1:off  2:off  3:on   4:off  5:on   6:off       
ntp                       0:off  1:off  2:off  3:off  4:off  5:off  6:off       
nxtvepg                   0:off  1:off  2:off  3:off  4:off  5:off  6:off       
openct                    0:off  1:off  2:off  3:off  4:off  5:off  6:off       
openvpn                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
pcscd                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
pm-profiler               0:off  1:off  2:off  3:off  4:off  5:off  6:off
postfix                   0:off  1:off  2:off  3:on   4:off  5:on   6:off
powerd                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
pptpd                     0:off  1:off  2:off  3:on   4:off  5:on   6:off
racoon                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
radvd                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
random                    0:off  1:off  2:on   3:on   4:off  5:on   6:off
raw                       0:off  1:off  2:off  3:off  4:off  5:off  6:off
rpcbind                   0:off  1:off  2:off  3:on   4:off  5:on   6:off
rpmconfigcheck            0:off  1:off  2:off  3:off  4:off  5:off  6:off
rsyncd                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
saslauthd                 0:off  1:off  2:off  3:off  4:off  5:off  6:off
setserial                 0:off  1:off  2:off  3:off  4:off  5:off  6:off  B:on
skeleton.compat           0:off  1:off  2:off  3:off  4:off  5:off  6:off
smartd                    0:off  1:off  2:on   3:on   4:off  5:on   6:off
smb                       0:off  1:off  2:off  3:on   4:off  5:on   6:off
smbfs                     0:off  1:off  2:off  3:on   4:off  5:on   6:off
smolt                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
smpppd                    0:off  1:off  2:on   3:on   4:off  5:on   6:off
snmd                      0:off  1:off  2:off  3:on   4:off  5:on   6:off
snmpd                     0:off  1:off  2:on   3:on   4:off  5:on   6:off
spamd                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
splash                    0:off  1:on   2:on   3:on   4:off  5:on   6:off  S:on
splash_early              0:off  1:off  2:on   3:on   4:off  5:on   6:off
squid                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
sshd                      0:off  1:off  2:off  3:on   4:off  5:on   6:off
stoppreload               0:off  1:on   2:on   3:on   4:off  5:on   6:off
stunnel                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
svnserve                  0:off  1:off  2:off  3:off  4:off  5:off  6:off
syslog                    0:off  1:off  2:on   3:on   4:off  5:on   6:off
upsd                      0:off  1:off  2:off  3:off  4:off  5:off  6:off
vsftpd                    0:off  1:off  2:off  3:on   4:off  5:on   6:off
waitfornm                 0:off  1:off  2:off  3:off  4:off  5:off  6:off
winbind                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
xdm                       0:off  1:off  2:off  3:off  4:off  5:on   6:off
xfs                       0:off  1:off  2:off  3:off  4:off  5:off  6:off
xinetd                    0:off  1:off  2:off  3:on   4:off  5:on   6:off
xrdp                      0:off  1:off  2:off  3:off  4:off  5:on   6:off
ypbind                    0:off  1:off  2:off  3:off  4:off  5:off  6:off

Among these are services like sshd at run-level 3 and 5, xrdp at run-level 5 only…

It was only an idea. You have to generate your own hypotheses and test them out to work out what the real problem is with the services that don’t start.

The only common thing about these services at most cases is:
Required-Start: $network $remote_fs

I never upgrade but do a clean install. Upgrades can leave dross from previous installs to haunt you. You have stuff reaching back 3 versions. 11.2 despite only 0.1 different was a pretty large change in a lot of things.