restarting services (from the console)

tino

Verified User
Joined
Jan 8, 2004
Messages
92
Hi,

I have many services that I cannot "nicely" restart from the console. For example mysql.

The mysql init script in /etc/init.d seems to be unsuitable for the way DA starts the mysql services.

But there are many more services that have the same problem.

Is there a correct way to restart these services, other then the obviously incorrect "service <SERVICE> restart/stop/start"?

Tino
 
The server I'm talking about is (unfortunatly) running RH9. :-(

Tino
 
I have also noticed problems in restarting MySQL.

I'm going to bring this post to the attention of DA staff.

Jeff
 
Cool.

Restarting mySQL is kind of a pain. I now have to kill all mysql processes manually (since I don't know the "proper" way).

Tino
 
Named is beeing a real pain in the butt...

I cannot restart bind from the console, nor from the DA interface.

I have to kill -9 the "old" process in order to restart it. *ouch*

Am I really the only one with this annoying problem?

Tino
 
I've never had a problem with stopping and restarted bind.

Can you show us the output of your "ps aux | grep named" command both before and after attempting "service named stop" as root?

(Don't forget to restart the daemon after copying your results to us.)

Jeff
 
Here's the sequence:

[root@ms1 root]# ps aux | grep named service named restart
named 13289 0.0 0.2 31676 2148 ? S Jul18 0:32 [named]
tino 29273 0.0 0.0 3568 624 pts/0 S 07:16 0:00 grep named


[root@ms1 root]# service named restart
Stopping named:
named: already running[root@ms1 root]#

[root@ms1 root]# ps aux | grep named
named 13289 0.0 0.2 31676 2548 ? S Jul18 0:32 [named]
root 30199 0.0 0.0 3564 620 pts/0 S 07:18 0:00 grep named

The process id of named has not changed. So my guess is that the named script in /etc/init.d/rc doens't work. Strange...

Tino
 
Last edited:
Have you checked the pid file to see what RHL thinks the pid is, compared to what it actually is as returned by the ps waux line?

As a last resort, I'd say go for tech support.

If you're renting a dedicated server, check with the company you rent it from; otherwise ask the DA staff.

(If you were renting from me we'd be happy to log in and fix it for you; I'm sure any other vendor would do as much.)

Jeff
 
Back
Top