Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH General Discussion (alliedassault.us/forumdisplay.php?f=7)
-   -   Anyone know the SSH command to remote reboot a linux server? (alliedassault.us/showthread.php?t=8563)

Jasper 09-02-2002 06:41 AM

Anyone know the SSH command to remote reboot a linux server?
 
I cant restart TS untill the server is rebooted. If anyone knows the command to remote-reboot a linux server via SSH please let me know :P

[NBK] G.I. Jerk 09-03-2002 12:06 PM

I assume you mean the machine? Or restart the server itself?

The reboot command in linux should reboot the machine. If for whatever reason it wont allow it because you're connected via SSH try echoing the appropriate lines into a perl script. I'd also add a brief wait period to give you time to disconnect lest it cause you problems. Then invoke the script.

I forget where I saw it but some linux version of a stats program had a perl script in it to restart the server, not the machine. Search it out?

=[DOA]=BallBuster 09-03-2002 02:50 PM

Restarting apache
 
to restart my server I login as root then

apache enter
apachectl gracefull enter

This is how i restart my box

=[DOA]=BallBuster

[NBK] G.I. Jerk 09-03-2002 06:51 PM

Re: Restarting apache
 
[quote="=[DOA]=BallBuster":d311b]to restart my server I login as root then

apache enter
apachectl gracefull enter

This is how i restart my box

=[DOA]=BallBuster[/quote:d311b]

Hmmm I have apache on my bawx...gonna have to try that

Jasper 09-03-2002 07:08 PM

Thanks.
Its a moot issue, I dont have root access and the server didnt need restarting anyway.

Bazooka_Joe 09-04-2002 08:21 AM

the command is "gracefull"? heh or is that just a pw?

=[DOA]=BallBuster 09-04-2002 11:44 AM

Password?
 
Joe,

Once you are logged in through SSH in a linux
server as Root "SU" - you dont need further passwords

"Gracefull" just tells apache not to restart until any
other operations that may be running terminate first

=[DOA]=BallBuster

Bazooka_Joe 09-04-2002 02:14 PM

Ah. Well excuse me! heh J/K

I want to learn Apache script, along with PHP and MySQL.


All times are GMT -6. The time now is 02:39 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.