Separate names with a comma.
Discussion in 'General Discussion' started by mahdionline, Sep 29, 2004.
I want to restart server from SSH, whtat is the needed command ?
Thats easy "reboot" from SSH should do it.
don't sync; sync; halt;
shutdown -r now
Time for someone to look for a Linux 101 class or find a few introduction to Linux books and/or websites
hey, you could always pull the plug or take a good guess
No that would not be good if your goal was to reboot
init 6 (reboot) instead of init 0 (halt) should work though.
and you will see that it simply calls reboot or halt, but it includes a few extra features that make it my choice over a simple
Personally, I use reboot, 'cos it takes away the possibility of forgetting the -R with shutdown or using the wrong init function and having to contact the NOC
in my mind using reboot is bad.... its a shock to the system.
not to mention if any user is editing files, uploading a file etc.
using the proper format allows the server to shutdown / reboot on its time
there are times when reboot or shutdown -r now is required, but most
of the time you want the services/programs/users to be able to save
their work and stop what they are doing.
you wouldnt want an update process for example to be killed in the middle
of it would you? or for example a user creating or running a db query.
that would / could corrupt a db.
reboot = equivalent of Forceful System Reboot in whm
shutdown -r = equiv of graceful.
Nope. From the man page:
Reboot shuts down your processes first, dismounts partitions where it can and then reboots. The chances of corruption are minimal. I don't understand what you're suggesting as an alternative? Don't reboot?
They are essentially the same command. Assuming now is appended to the shutdown command, 'shutdown -r now' will call reboot. 'reboot -f' is the not so nice one.
/sbin/shutdown -r now
and have never had a problem