The
/etc/init.d/sshd restart command is intended to restart your ssh daemon (the
sshd process is the only process which will be affected by the restart).
Use the
shutdown command to reboot your server - popular options are as follows:
- shutdown -r now - Reboot ("safe" - runs the init scripts associated with the shutdown process)
- shutdown -nr now - Reboot ("forced" - skips the init scripts - use of this command option is not recommended, as it may affect database integrity and cause other errors)
- shutdown -h now - Halt the VPS (equivalent to a "safe" shut down)