Skip to main content
+44 7575 472931[email protected]
HostaccentKnowledge BaseHosting, websites, SEO, and growth

Linux Service Not Starting After Reboot? 5 Fixes (2026)

Linux service not starting after reboot? It was probably started but never enabled. Run 3 commands to find the cause, apply the fix and prove it survives.

VPSWeb Hosting
Linux service not starting after reboot: systemctl is-enabled reports disabled, then enable --now restores it at boot

The server came back from a reboot, SSH works, and the site is still down. A Linux service not starting after reboot looks like a crash, but usually nothing is broken. The service was started once by hand and never told to start at boot.

Quick Fix: Run systemctl is-enabled nginx (swap in your service name). If it prints disabled, run sudo systemctl enable --now nginx and you're done. If it prints enabled, the unit tried and failed during boot: run systemctl --failed, then journalctl -b -u nginx to read why. As of October 2026 this applies to every mainstream systemd distro.

Last verified: October 2026 — Ubuntu 26.04 LTS (systemd 259), Ubuntu 24.04 LTS (systemd 255), upstream systemd 262

Our team resolves 20-30 client issues every day, and this one turns up regularly after kernel updates and maintenance reboots. Below is the checklist we work through, written so you can run it yourself in about 10 minutes.

Why a Linux Service Not Starting After Reboot Is Rarely Broken

Starting a service and enabling it are two separate actions in systemd, and only one survives a restart. systemctl start runs the service now. systemctl enable creates a symlink that tells systemd to start it at every boot. The systemctl manual says it plainly: a unit can be started without being enabled, and enabled without being started.

A service started with systemctl start but never enabled keeps running until the next reboot, which can be 200 days away. When the server finally restarts, systemd starts only the enabled units, so the service sits at inactive (dead) with no error logged. A service not enabled after restart isn't a fault in systemd's eyes, and fixing it takes one command and under 60 seconds.

Distro matters too. Debian and Ubuntu packages usually enable a service on install, while AlmaLinux and Rocky Linux leave most of them disabled until you say otherwise.

Across the 4,000+ sites Hostaccent has migrated (we're a UK-registered company, hosting since 2016, UK-incorporated 2018), the step people most often get wrong isn't the file copy. They start services by hand on the new server, test the site, and never enable them.

How to Check Why a Service Did Not Start: The 3-Command Boot Check

Three commands tell you which of the five fixes below you need. Our team runs this 3-Command Boot Check first on any "site down after reboot" ticket.

bash
systemctl is-enabled nginx          # 1. Was it ever told to start at boot?
systemctl --failed                  # 2. Did anything try and fail this boot?
journalctl -b -u nginx --no-pager   # 3. What did it say on the way down?

Match the result to a row. They're ordered by how often we see each cause.

What you seeWhat it meansGo to
disabledStarted by hand, never enabledFix 1
not-found, or the app runs in Docker, PM2 or screensystemd isn't managing it, or it's a legacy init scriptFix 2
masked or staticBlocked, or the unit has no [Install] sectionFix 3
enabled, with an empty log for this bootNever pulled in: wrong targetFix 3
enabled, and listed by --failedIt tried at boot and diedFix 4 or 5

To check why a service did not start at boot, run three commands: systemctl is-enabled NAME, systemctl --failed and journalctl -b -u NAME. The first shows whether it was meant to start, the second whether it failed, and the third gives the exact error from this boot. Together they take about 30 seconds.

Pro Tip: journalctl -b starts at the current boot, so the failure sits near the top of the output. Rebooted again since? journalctl -b -1 -u nginx reads the previous boot.

Fixes 1-2: Enable the Service and Everything Around It

If the check printed disabled, you have the common case. The fix people search for as "systemctl enable service on boot" is a single command.

Fix 1: Enable the service

bash
sudo systemctl enable --now nginx mariadb php8.3-fpm

enable creates the boot symlink and --now starts the service immediately. The one you noticed is rarely the only one, so check the database, PHP-FPM, cache, mail, DNS and firewall too. To list what's still disabled:

bash
systemctl list-unit-files --type=service --state=disabled

On a control panel server, make the change in the panel so its monitoring agrees with you: Service Manager in WHM, or Services Management in Plesk.

Fix 2: Bring back what systemd doesn't manage

Some things were never systemd services. Docker containers return only with a restart policy (docker update --restart unless-stopped NAME). PM2 apps need pm2 startup, then pm2 save. Anything launched in screen, tmux or with nohup stays gone until you give it a unit file. On our own stack, Next.js under PM2 and a Docker container both needed this step.

Old SysV init scripts are the 2026 twist. Upstream systemd removed support for /etc/init.d scripts in version 260 (March 2026), as the systemd 260 release notes record, and Ubuntu 26.04 LTS on systemd 259 is the last Ubuntu release that still runs them. A service that depends on an init script or chkconfig needs a native unit file now.

Professional help available

Still working through this server issue?

Send the symptoms, error output, and what you have already tried. We can work with Hostaccent services or infrastructure hosted with another provider.

Request server helpHow server support worksHosted elsewhere? One-time paid support is available after scope and price confirmation.

Fixes 3-5: When an Enabled systemd Service Failed at Boot

If is-enabled already says enabled and the service is still down, enabling it again won't help. Something stops it during boot specifically, and the journal will name it.

Fix 3: Repair the [Install] section, or unmask

masked means the unit is linked to /dev/null; undo it with sudo systemctl unmask nginx. static means the unit has no [Install] section, so enable has nothing to hook into. For a custom unit, add one (the systemd.unit documentation lists the options):

ini
[Install]
WantedBy=multi-user.target

Then run sudo systemctl daemon-reload and sudo systemctl reenable myapp. One gotcha: WantedBy=graphical.target never fires on a headless server, which boots to multi-user.target.

Why does my service start fine by hand but fail at boot?

Because at boot it starts too early: before the network has an address, the disks are mounted or the database is up. This is Fix 4, and in our experience it sits behind most "enabled but dead" tickets.

The classic log line is nginx's bind() to 203.0.113.10:443 failed (99: Cannot assign requested address). Add a drop-in with sudo systemctl edit nginx:

ini
[Unit]
Wants=network-online.target
After=network-online.target
# data on a separate volume?  RequiresMountsFor=/var/www
# app needs the database?     After=mariadb.service

[Service]
Restart=on-failure
RestartSec=5

After=network.target alone doesn't wait for an IP address, as systemd's network-online guide explains.

Insider Insight: Faster hardware makes this race more likely. An NVMe SSD server can boot quickly enough that a service reaches bind() before the network is configured, so the problem first appears right after an upgrade.

An enabled service that fails at boot but starts fine by hand is almost always an ordering problem: it launched before the network, a mount or the database was ready. Adding Wants=network-online.target and After=network-online.target makes systemd wait for a configured network, and Restart=on-failure with RestartSec=5 retries every 5 seconds. Without a Restart= line, systemd tries once and stops.

Production server down and no appetite for editing unit files live? Our engineers fix this exact boot problem for a small one-time fee, and you'll see the exact quote before anyone touches the server. Hosted with Hostaccent? Then it's simply covered by support, free. Have an engineer fix it

Fix 5: Clear failures that only show at boot

If the log shows a real error, fix that error. The usual ones:

  • An untested config change. Run nginx -t or apachectl configtest; a missing SSL certificate file is common.
  • A full disk. df -h and df -i take 10 seconds to run.
  • Memory. Everything starts at once during boot, and a small VPS can hit the OOM killer (see why a VPS runs out of RAM).
  • start-limit-hit. Clear it with sudo systemctl reset-failed nginx, then start the service again.

For failures inside one service, see our guides to PHP-FPM not starting and MySQL failing to start.

Confirm the Fix and Stop It Happening Again

The only real test of boot behaviour is a boot. Pick a quiet hour and reboot on purpose:

bash
sudo systemd-analyze verify /etc/systemd/system/myapp.service
sudo reboot
# once it's back:
systemctl --failed
systemctl is-active nginx mariadb php8.3-fpm

To confirm a boot fix, reboot the server deliberately and run systemctl --failed. A healthy server prints 0 loaded units listed, and every critical service reports active within about 60 seconds of boot. A planned test reboot costs roughly 2 minutes of downtime, far less than finding a disabled service during an outage.

From the Ticket Queue: According to Hostaccent's support-queue data (October 2026), Linux server issues account for about 25% of monthly tickets, and the after-reboot outage is a regular in that group.

Three habits keep it from coming back:

  1. Run systemctl is-enabled before you log out of any server you just installed something on.
  2. Reboot every new server on purpose before DNS cutover. We learned that migrating about 50 client sites in five days during an upstream shutdown.
  3. Add Restart=on-failure to custom units, keep external uptime monitoring on, and take backups before editing unit files.

Still not working?

If SSH itself didn't come back, use your provider's emergency console and enable ssh (Debian, Ubuntu) or sshd (AlmaLinux, Rocky Linux). If the site is up but slow, a cache service such as Redis probably stayed down and took performance with it. Our WordPress slow-site diagnosis guide covers that.

Your Next Step: A Server That Comes Back on Its Own

Now that you know a Linux service not starting after reboot is usually one missing enable, prevention is one habit: check is-enabled after every install, then prove it with a planned reboot.

Fixed it yourself? Good. On a well-run host, though, this class of problem is support's job. The Basic plan at $7.99/mo (renews at $7.99/mo) gives you full root access, free 30 Gbps DDoS protection, a 30-day money-back guarantee and 24/7 help from Hostaccent's own engineers. One caveat: no control panel licence is bundled, so budget for cPanel separately or run panel-free. Start on the Basic VPS plan.

Still stuck? Open a ticket and have an engineer look. It's a small one-time fee, and you'll see the exact quote before any work starts.

Frequently Asked Questions

Why is my Linux service not starting after reboot when it is enabled?

An enabled service that stays down either failed during boot or was never pulled in. Run systemctl --failed and journalctl -b -u NAME to see which. The usual causes are start order (it launched before the network or a disk was ready), an [Install] section that points at the wrong target, a config error, or a full disk. Adding After=network-online.target and Restart=on-failure resolves the most common case.

What is the difference between systemctl start and systemctl enable?

systemctl start runs a service right now and has no effect on the next boot. systemctl enable creates a symlink so systemd starts the service at every boot, but it doesn't start anything now. You almost always want both, which is why systemctl enable --now NAME exists: two steps in one command. Check the result with systemctl is-active and systemctl is-enabled, because they answer two different questions.

How do I use systemctl to enable a service on boot?

Run sudo systemctl enable --now NAME, then systemctl is-enabled NAME, which should print enabled. For proof, reboot at a quiet time and run systemctl --failed; an empty list means every enabled unit came up. On cPanel servers, tick both Enabled and Monitor for the service in WHM's Service Manager so the panel restarts it if it dies later. The whole check takes under 5 minutes, reboot included.

Do /etc/init.d scripts and rc.local still work in 2026?

Less and less. Upstream systemd dropped support for SysV init scripts in version 260, released in March 2026, so distros shipping 260 or newer ignore /etc/init.d scripts completely. Ubuntu 26.04 LTS ships systemd 259 and is the last Ubuntu release that still runs them. The rc.local build option was removed in 262. Convert anything important to a native unit file; a basic one is about 10 lines.

Should I use a sleep or cron @reboot to fix startup order?

No. A sleep 30 in a start script works until the day the network takes 31 seconds, and it slows every normal boot. Cron's @reboot has the same blind spot: it fires once, waits for nothing and won't retry (if it silently does nothing, see our guide to a cron job not running). Declare the real dependency with After= and Wants=, then add Restart=on-failure so systemd retries for you.

Professional help available

Still not resolved? Let a server specialist take it from here.

Send the symptoms, error output, and what you have already tried. We can work with Hostaccent services or infrastructure hosted with another provider.

  • No hosting transfer required
  • Scope confirmed before paid work
  • No changes before your approval
Request server helpHow server support worksHosted elsewhere? One-time paid support is available after scope and price confirmation.
Reviewed by

Hostaccent Editorial Team

Reviewed for technical accuracy and clarity before publication.

Last updated

Oct 13, 2026

HostAccent Editorial Team publishes practical hosting guides, operations checklists, and SEO-focused tutorials for businesses building international web presence.

Discussion

Have a question or tip about this topic? Share it below — your comment will appear after review.

Your email stays private and is only used for moderation.

Write for the Community

Have a tutorial, tip, or insight to share? Get published on the Hostaccent Blog with your name, bio, and website link.

Become a Contributor

Need a faster setup for this workflow?