Reboots, Reinstalls & Console

Managing your VPS (start, stop, reboot, etc.)

By the Domain India teamPublished 7 min read
Knowledge base article
Contents (8 sections)

Most of the time a VPS should simply stay on. You'll still need to restart it now and then: after a kernel update, when a service hangs, or when the server stops answering. This guide explains how to reboot a Linux VPS safely from the command line, why you should almost never power it off yourself, and what to do when it stops responding.

Key takeaways

Reboot a healthy VPS over SSH with sudo reboot, after checking that your services start at boot. Restart a single service with systemctl restart before rebooting the whole server. Don't run poweroff or shutdown -h unless support has asked you to, because a VPS you switch off from inside stays off. If the VPS stops responding or you need it started or force-restarted, open a ticket with its IP address and support will do it.

1. Restart a service, not the server

Most problems that make people reach for a reboot are one service misbehaving. Restarting just that service is faster and doesn't interrupt anything else:

bash
sudo systemctl status nginx          # is it running? read the last log lines
sudo systemctl restart nginx         # restart it
sudo journalctl -u nginx -n 50       # the service's recent log

Replace nginx with the service you need: apache2 or httpd, mysql or mariadb, php8.3-fpm (use your version), docker and so on. Reboot the whole VPS only when a kernel update needs it, when several services are stuck, or when the system itself is misbehaving.

2. Does the server need a reboot?

After updates, check whether a reboot is actually required:

DistributionCommandReboot needed if
Ubuntu or Debianls /var/run/reboot-requiredThe file exists
AlmaLinux or Rocky Linuxsudo dnf needs-restarting -rIt says a reboot is required

A new kernel only takes effect after a reboot. Library updates, for example to OpenSSL, often need only the affected services restarted.

3. Reboot safely

  1. Check services start at boot.
    Run systemctl is-enabled nginx mysql (your services). Anything that says disabled won't come back by itself; enable it with sudo systemctl enable name.
  2. Check containers and apps.
    Docker containers need a restart policy such as --restart unless-stopped; PM2 apps need pm2 startup and pm2 save.
  3. Pick a quiet time
    if the server runs live sites, and tell your users if the downtime matters.
  4. Reboot.
    Run sudo reboot. sudo systemctl reboot and sudo shutdown -r now do the same. To give logged-in users notice, schedule it: sudo shutdown -r +5 "Rebooting for updates"; cancel with sudo shutdown -c.
  5. Wait, then reconnect.
    Most Linux servers are back within a few minutes. Reconnect with ssh and run the checks in section 5.

4. Stopping and starting a VPS

Don't power off your VPS from inside

sudo poweroff, sudo halt and sudo shutdown -h now switch the VPS off completely. It then stays off, with your sites and email down, until it is started again from outside the server. Unless support has asked you to shut down, use reboot instead.

If you need the VPS stopped for a planned reason, or started again after it was switched off, open a ticket with the VPS IP address and support will do it. The same applies to a force restart when the server is frozen.

5. After the reboot: health checks

Run these once you are back in:

bash
uptime                         # should show a boot a few minutes ago
systemctl --failed             # services that failed to start
df -h                          # disks mounted and not full
free -h                        # memory available
sudo journalctl -b -p err      # errors logged during this boot

Then open your websites and test anything that matters, such as a contact form or a login. If a service failed, systemctl status name and journalctl -u name usually say why. A common cause is a configuration file that was edited weeks ago but never reloaded until now.

6. When the VPS stops responding

Work through these before asking for a restart:

  1. Check from another network.
    Try SSH from a mobile hotspot. If that works, your own IP address may be blocked by the server's firewall or by an intrusion-prevention tool such as Fail2ban.
  2. Check what still answers.
    If the website loads but SSH doesn't, or the other way round, the server is running and one service is the problem.
  3. Think about what changed.
    A new firewall rule, an SSH configuration edit or a runaway process that used all the memory causes most lockouts.
  4. Ask support.
    If nothing answers, open a ticket with the VPS IP address, when it stopped responding and what you changed last. Support can check the server and restart it.

For console access when SSH is broken, see connecting to a VPS when SSH is broken. After a forced restart, run the health checks above; the filesystem check usually runs by itself during boot.

7. Watching your VPS day to day

A few commands show whether the server is healthy without any extra software:

  • htop or top: live CPU and memory use per process. Press M in top to sort by memory.
  • free -h: if available memory is near zero and swap is full, the kernel will start killing processes.
  • df -h and du -sh /var/log/*: a full disk stops databases and mail.
  • sudo journalctl -k | grep -i "out of memory": shows processes the kernel killed for memory.

For graphs and alerts over time, see production observability with Prometheus, Grafana and Loki.

8. Domain India VPS

Domain India VPS plans run on KVM with full root access and NVMe storage, and are self-managed: you run the software and routine reboots, and support helps with platform tasks such as starting or force-restarting the VPS. If a server keeps running out of memory, a larger plan may be the fix. Prices on the cards are live and exclude 18% GST.

VPS Starter
₹552.65/mo + GST
  • 1 vCPU
  • 2 GB DDR4 RAM
  • 64 GB NVMe SSD Storage
  • 2 TB Monthly Bandwidth
See plan details
VPS Basic
₹1,105.30/mo + GST
  • 2 vCPU
  • 4 GB DDR4 RAM
  • 128 GB NVMe SSD Storage
  • 3 TB Monthly Bandwidth
See plan details
How do I reboot my Domain India VPS?

Connect over SSH and run sudo reboot, after checking that your services are enabled to start at boot. The server is normally back within a few minutes. If the VPS is not responding to SSH, open a support ticket with its IP address and support can restart it.

How do I start my VPS after shutting it down?

A VPS switched off from inside with poweroff or shutdown -h stays off until it is started from outside. Open a support ticket with the VPS IP address and support will start it.

Should I reboot or restart a service?

Restart the service first with systemctl restart and the service name. Reboot the whole VPS only for a kernel update, or when several services or the system itself are stuck.

How do I know if my VPS needs a reboot after updates?

On Ubuntu or Debian, a reboot is needed if the file /var/run/reboot-required exists. On AlmaLinux or Rocky Linux, run sudo dnf needs-restarting -r.

My website did not come back after a reboot. What should I check?

Run systemctl --failed to list services that did not start, then systemctl status and journalctl -u with the service name to see why. Enable services that should start automatically with systemctl enable.

My VPS is not responding at all. What should I do?

Try SSH from another network in case only your IP is blocked, and check whether the website still loads. If nothing answers, open a support ticket with the VPS IP address, the time it stopped responding and what you changed last.

Ready to take control of your server? Keep this checklist handy, compare VPS plans if you need more memory, or open a ticket if your VPS needs a start or restart from our side.

VPS not responding?

Give us the VPS IP address, when it stopped responding and what changed last, and support will check the server.

Open a ticket

Ready when you are

Get VPS from ₹552.65/mo + GST

See plans

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app
How to Reboot, Start and Stop Your VPS Safely