View Full Version : restarting services (from the console)
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
nobaloney
07-12-2004, 08:28 AM
What OS are you running?
Jeff
The server I'm talking about is (unfortunatly) running RH9. :-(
Tino
nobaloney
07-12-2004, 11:56 PM
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
Lemme just *bump* this one, because it's a pain... :-)
Tino
nobaloney
07-21-2004, 07:34 PM
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
nobaloney
07-22-2004, 10:11 AM
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
Hehe.
It's a dedicated server I rented. I'll ask them. :-)
Tino
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.