LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 May 31 2005

rolf
Member

startup scripts misbehaving

Some of my daemons are not starting and the script /etc/rc.local in not being executed. I think the problem started after I changed some of the startup configuration using chkconfig.

Apache for example should be working in runlevel 4 (the default level on my system):

[root@summer root]# chkconfig --list httpd
httpd           0:off   1:off   2:off   3:on    4:on    5:on    6:off
[root@summer root]# runlevel
N 4
[root@summer root]# /etc/init.d/httpd status
httpd is stopped

Yet it does not start after a computer restart (no sign of starting in the apache logs). I have to start it manually using either:

/etc/init.d/httpd start

or

/etc/rc.d/rc4.d/S85httpd start

Some services (httpd, smb and cron as far as I know) present this problem. Other services work fine.

Any ideas?

Offline

#2 June 5 2005

mahdoum
Member

Re: startup scripts misbehaving

still having this prob?

Offline

#3 June 5 2005

Sadus
Member

Re: startup scripts misbehaving

Well, if you're using rc.local then i assume you're using Red Hat or Fedora, which i don't use.

cat /var/log/apache2/error.log

here and lets see

Offline

#4 June 5 2005

rolf
Member

Re: startup scripts misbehaving

I guess I'm still having this problem, did not dare to restart since :)
Sadus I checked the apache error log, and there's no entry whatsoever, no trace of any attempt to start, so I have assumed that the problem is from the startup scripts not apache.
When I manually start apache after the system startun "/etc/init.d/apache start", then everything goes OK and you can see the normal entries in error.log

I'm going to work on this problem tonight and tell you what happens

Offline

#5 June 5 2005

rolf
Member

Re: startup scripts misbehaving

I fixed it.
some process for the mail server (which I do not use anyway) was getting stuck in 99% cpu usage, slowing down the PC (but hardly noticeable in command line) and effectively halting execution of the following startup scripts.
one of these problems where it turns out to be simpler than you thought.
I just turned off the mail server in all runlevels.

Offline

#6 June 5 2005

Sadus
Member

Re: startup scripts misbehaving

let me guess, Exim?

Offline

#7 June 5 2005

rolf
Member

Re: startup scripts misbehaving

Beeeeep, wrong answer!
Sorry :)
Nope, exim is not installed on my system

Offline

Board footer