LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell-Command to restart Server (https://www.linuxquestions.org/questions/linux-newbie-8/shell-command-to-restart-server-34472/)

Luc 11-03-2002 05:24 AM

Shell-Command to restart Server
 
Hi,

I need some commands to:

restart SuSe and RedHat linux and
restart/stop/start mysql

does anybody know this command? Im knowing only the "halt" command ;)

thx4help

Luc 11-03-2002 05:47 AM

ok its strg+alt+del, but i cant use this in shell, if im connectet to a server in frankfurt

or is ther any string for this keyboard command?

adam_boz 11-03-2002 06:23 AM

If you simply want to restart the machine, "restart" is the command :-)

If you want to restart just one server, you can do it by sending a "restart" option to it's init script. these will probably be in /etc/rc.d/init.d/ (they are linked to from the /etc/rcX.d directories)

If mysql is run through xinetd, you can do "/etc/rc.d/init.d/xinetd restart" or something similar, and if it's run through it's own daemon, the xinetd up there will be replaced by something similar to mysql... just check out what you've got in initd/ and maybe even do a "less <file>" to see what's in them.

-Adam

Luc 11-03-2002 08:21 AM

cool ;) thx. But it was "reboot" :D

adam_boz 11-03-2002 02:49 PM

hehe... sorry.... I was tired


All times are GMT -5. The time now is 04:14 AM.