Sooner or later every VPS needs a restart — after a kernel update, when a service hangs, or because you changed something fundamental. There are two ways to do it: from inside the operating system, or from outside with the power actions in your client area. This guide explains when to use which, how to manage individual services with systemctl instead of rebooting the whole machine, and how to use the console, snapshots and reinstalls when things go wrong. Commands work on Ubuntu 24.04, Debian 12 and AlmaLinux 9.
Two ways to control your VPS
Think of your VPS as a computer with a keyboard you can reach in two ways:
- From inside — over SSH (or Remote Desktop on Windows) you run commands such as
sudo reboot. The operating system shuts down its services in order and writes everything to disk. This is the clean way. - From outside — in the client area at client.hostigan.com, open the VPS service. There you find power actions such as start, restart, shut down and a hard power-off, plus access to a console. These work even when you cannot log in, but they know nothing about what is running inside.
The status shown in the client area tells you whether the virtual machine is running. It does not tell you whether SSH, your website or your database is responding — a VPS can be "running" and still unreachable because of a firewall rule or a crashed service.
Restarting and shutting down from the operating system
Whenever you can still log in, use the operating system's own commands:
sudo reboot # restart now
sudo shutdown -r +5 "Restarting for updates" # restart in 5 minutes, warn logged-in users
sudo shutdown -c # cancel a scheduled shutdown
sudo shutdown -h now # shut down and stay off
After shutdown -h now the VPS stays stopped until you start it again from the client area — it will not come back by itself.
On a Windows Server VPS the equivalents are:
Restart-Computer # restart now
shutdown /r /t 300 # restart in 5 minutes
shutdown /a # abort a scheduled restart
Stop-Computer # shut down
Tip: Check whether a restart is actually needed. On Ubuntu and Debian the file
/var/run/reboot-requiredexists after updates that need one; on AlmaLinux runsudo dnf needs-restarting -r.
Power actions in the client area
Use the power actions in the client area when the operating system no longer responds or you are locked out. Roughly, they do this:
| Action | What happens | When to use |
|---|---|---|
| Start | Boots a stopped VPS | After a shutdown |
| Restart | Asks the OS to reboot cleanly | You can't log in, but the OS still reacts |
| Shut down | Asks the OS to shut down cleanly | Planned maintenance |
| Power off | Cuts power immediately | The OS is frozen and nothing else works |
A sensible order when a server stops responding:
- Try
sudo rebootover SSH. - If you cannot log in, use restart in the client area.
- Open the console and see what the screen says.
- Give it a few minutes — a file system check or update may be running.
- Only then use power off followed by start.
Warning: A forced power-off is like pulling the plug. Open files and database writes can be lost, and the file system may need repair on the next boot. Never force a Windows VPS off while it shows "Working on updates".
Restart a service, not the whole server
Most problems do not need a full reboot. On modern Linux distributions, services are managed by systemd:
systemctl status nginx # is it running? last log lines
sudo systemctl restart nginx # stop and start
sudo systemctl reload nginx # re-read config without dropping connections
sudo systemctl enable --now nginx # start now and at every boot
sudo systemctl disable --now nginx # stop now and don't start at boot
systemctl --failed # list services that failed
journalctl -u nginx -b # this service's log since the last boot
Replace nginx with the service you need — mariadb, php8.3-fpm, docker and so on. Note that the SSH service is called ssh on Ubuntu and Debian and sshd on AlmaLinux.
To check when the server last booted and why it went down, use:
uptime -s # when the system booted
last -x reboot # history of reboots and shutdowns
journalctl -b -1 -p err # errors from the previous boot (needs a persistent journal)
The console: your way in when SSH fails
The console in the client area shows your VPS's screen directly, as if a monitor and keyboard were plugged in. It does not depend on the network inside the VPS, so it works when:
- A firewall rule blocks SSH or RDP.
- You disabled password login and lost your SSH key.
- The network configuration is broken.
- The server is stuck at boot or in emergency mode.
Log in with a local user and password, fix the problem, and test SSH again from your own machine. Be aware that the console's keyboard layout may differ from yours, which matters for passwords with special characters.
Snapshots, backups and reinstalling
Before risky work — a major upgrade, a new firewall setup, a big configuration change — make sure you can go back:
- Snapshots capture the whole disk at a moment in time. On Hostigan, snapshots are available on VPS Plus and higher plans. Restoring a snapshot returns the disk to that moment, so anything changed afterwards is lost.
- Your own backups — database dumps and copies of important files stored outside the VPS — protect you even if the whole server is lost.
A reinstall erases the disk and installs a fresh operating system. It is the cleanest fix for a badly broken or compromised server, but it cannot be undone. After a reinstall the server has a new SSH host key, so your computer will warn that the host identification has changed; remove the old entry with ssh-keygen -R YOUR_SERVER_IP.
Note: A snapshot is perfect for rolling back a failed change, but it does not replace a backup kept somewhere else. Keep at least one copy of important data off the server.
Troubleshooting common problems
- Running, but no SSH after a restart. Open the console. If you see a login prompt, the OS is up — check the firewall (
sudo ufw statusorsudo firewall-cmd --list-all) and the SSH service. - Status shows stopped. Someone or something shut it down from inside. Start it from the client area and check
last -xafterwards. - Boots into emergency mode. Usually a bad line in
/etc/fstab, a full disk or an interrupted update. Log in on the console, read the errors withjournalctl -xb, and fix or comment out the faulty line. - Disk full. Find the culprit with
sudo du -xh / --max-depth=1 | sort -hand clean old logs withsudo journalctl --vacuum-size=200M. - Slow right after a reboot. Caches are empty and services are warming up. Give it a few minutes before drawing conclusions — see How to monitor CPU, RAM, disk and network on your VPS.
In short
Restart from inside the operating system whenever you can, and restart individual services with systemctl before rebooting the whole machine. Use the client area's power actions and console when you are locked out, keep the hard power-off as a last resort, and take a snapshot or backup before anything risky. For keeping the system itself current, read How to update your Ubuntu server, and for access, How to connect to a Linux VPS with SSH.
Managing a Hostigan VPS
Every Hostigan VPS is a KVM virtual machine with full root access that you manage from the client area at client.hostigan.com, with snapshots included from VPS Plus upwards. If a server will not come back after you have tried the steps above, email support@hostigan.com, which handles emergencies 24/7.
Frequently asked questions
No. A normal restart or shutdown keeps everything on the disk. Only data that was still in memory and not yet written, for example in an application that was killed mid-write, is at risk, which is why a clean restart from the operating system is preferred over a forced power-off.