Link to home
Start Free TrialLog in
Avatar of aldric
aldric

asked on

Services stopped !!

Hi, I'm running Linux Red Hat 6.0
Yesterday, my station had some probs:

services (most of them) seems to run but in fact they don't !!

==> At boot, everything seems ok, but
when the system is ready, if I try to stop a service (i.e. sendmail, i have the following error : [the_pid_value] No such PID.

if I compare in /var/run/sendmail.pid and ps -ax | grep sendmail, I've the same value, but this one seems to be bad.

Any ideas are welcome,

Thanks, Aldric
Avatar of darkskyz
darkskyz

how exactly are you trying to stop them?
Avatar of aldric

ASKER

/etc/rc.d/init.d/sendmail stop

Also, when RedHat 6.0 is shutting down,
it comments every step of the reboot.

and for most process, I've the reprot :
Failure.
If I understand the last part of your question correctly, you are saying that the PID of sendmail as recorded in sendmail.pid is the same pid as you see from a ps listing. What happens if you try to kill sendmail by it's PID, i.e. "kill 1234" (using the pid from a ps output)?

In what way are the services failing to run? With sendmail for instance, can you telnet to the sendmail port (e.g. "telnet localhost 25")? Can the machine be seen on the network (via ping, tenet, etc.)? Can the machine see other networked systems?
Avatar of aldric

ASKER

Hi jlevie,

I think you have found a way to solve this prob: effectivly, I can connect on port 25 and if I kill the process, it didn't appeared anymore in my ps list.
So I looked closely at my process and I realized that the prob comes from inetd

This daemon won't start. And so,it don't appear in the ps list.

I wish it can help ...,

Aldric
If all that's wrong is inetd isn't starting, that is likely to be fixable. A few of reasons why inetd isn't starting include; a) the system isn't going all the way to runlevel 5, b) the inetd executable is damaged, or c) the inetd.conf file is bad. However, there could be other problems also and it might be helpful to know what happened just before this problem surfaced.
Avatar of aldric

ASKER

Normally, nothing happened just before.
If fact, saturday everything was OK. and, Monday morning, the probleme was here. But nobody was at the office during the w-end.
But it's true that the station) (a mail server in fact) was online during the w-e.

I'll change inetd executable now to see if it's better.
How can I know if It's really in runlevel 5?
windows manager seems to work.

Thanks, Aldric.
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aldric

ASKER

Thanks Jlevie, you lead me to the right way :=)

runlevel was 5.
but inetd and inetd.conf were corrupted?

Why this happened, I can't say but this was the prob. Thanks again.


/etc/rc.d/init.d/inet start failed to start
After this prob, I tried some reboot, so uptime is useless here :=)


Thanks, Aldric