All ArticlesDevOps2026-11-13T15:09:42+08:00

Thinking Weekly Server Reboots Prevent Outages? Stale Mounts and Zombie Crons Say Otherwise

Operators schedule weekly reboots believing it keeps servers healthy, but stale NFS mounts and orphaned cron jobs survive reboots and keep generating tickets. After reading, you will know which pre-reboot and post-reboot checks actually eliminate recurring issues versus just masking them.

A lot of operators schedule weekly server reboots as a form of preventive maintenance. The logic sounds reasonable: clear out leaked memory, reset stuck processes, start fresh. For consumer routers and cheap edge hardware, a periodic reboot genuinely helps. But production Linux servers are not consumer routers. On a server running NFS mounts, scheduled cron jobs, and stateful services, a weekly reboot does not prevent outages — it introduces a high-risk window where services fail to start, mounts hang, and orphaned jobs fire into a half-ready system.

The recurring tickets that follow these reboots are not random. They trace back to specific mechanisms that survive or misbehave across the reboot boundary.

Why reboots feel like they work

Reboots do clear certain classes of problems. A process leaking memory gets killed. File descriptors held by a crashed daemon get released. Temporary files in /tmp get cleaned. If your only issue is a slow memory leak in an application you cannot patch right now, a scheduled restart of that specific service (not the whole server) is a valid band-aid.

But operators often generalize from this. They see that a reboot fixed a sluggish server once, so they schedule weekly reboots for all servers. The problem: every reboot is a controlled crash. Services need to come back in the right order. Network filesystems need the network to be up first. Databases need to replay write-ahead logs. Caches start cold. Active connections drop. Each of these is a failure point, and the more complex the server, the more failure points exist.

As one infrastructure guide puts it plainly: every restart introduces a high-risk window where services fail to start automatically, databases take time to recover, APIs drop connections, and cache-warming periods choke downstream systems.

Stale NFS mounts that survive reboots

NFS (Network File System) mounts are one of the most common sources of post-reboot hangs. Here is the typical scenario: a server mounts a remote NFS share defined in /etc/fstab. The server reboots. During boot, the system tries to mount the NFS share before the network is fully up, or the NFS server on the other end is unreachable. The mount attempt hangs.

By default, NFS mounts use hard mode, which means the client retries indefinitely until the server responds. If the NFS server is down or the network path is broken, the boot process stalls. The server sits there, apparently hung, and the operator gets a ticket saying "server won't come back up after reboot."

The reboot did not prevent an outage. It caused one.

Even when the NFS server is reachable, stale file handles are a separate problem. If the NFS server was rebooted or the export was re-created between client reboots, the client may hold stale NFS file handles. Processes trying to access those mounts get Stale file handle errors. A reboot of the client does not fix this if the underlying export changed — the mount comes back, but the handles are still invalid until the mount is fully re-established.

What actually helps:

  1. Use the _netdev mount option in /etc/fstab for any network filesystem. This tells systemd (or the init system) to wait for the network before attempting the mount.

  2. Consider adding soft,timeo=30,retrans=3 to NFS mount options so a failed mount returns an error instead of hanging forever. Trade-off: soft mounts can cause silent data corruption if writes fail without the application noticing. Use soft only for read-only or non-critical mounts.

  3. Add nofail to the fstab options so a failed mount does not block the rest of the boot process.

A typical fstab line with these options:

nfs-server:/export/data  /mnt/data  nfs  _netdev,soft,timeo=30,retrans=3,nofail  0  0
  1. After every reboot, verify mounts actually came up. Do not assume.
# Check mounted filesystems — look for your NFS paths
mount | grep nfs

# Check for stale handles on a specific path
ls /mnt/data 2>&1 | grep -i stale

If you find stale handles, a umount -l /mnt/data followed by a fresh mount /mnt/data typically resolves it — but only if the NFS server and export are healthy.

Orphaned cron jobs that keep firing

Cron jobs are the other major source of post-reboot trouble, and they work in the opposite direction from NFS: instead of hanging, they fire too eagerly.

Here is the pattern. An operator sets up a cron job for a specific task — maybe a backup script, a log rotation, a database dump, or a sync job. Later, the service that cron job targets gets moved to another server, or the script path changes, or the application gets decommissioned. Nobody removes the cron entry.

The server reboots weekly. Cron starts. The orphaned job fires. It might:

  • Try to write to a mount point that no longer exists, filling the root partition with error logs.
  • Attempt to connect to a database that moved, generating connection timeout errors that fill syslog.
  • Run a backup script that tries to tar a directory that is now an empty mount point, producing a zero-byte backup that overwrites the real one.
  • Execute as root and spawn processes that consume CPU or memory for no useful purpose.

These orphaned jobs are invisible until something breaks. They do not show up in service status checks. They run silently on schedule.

A weekly reboot does not clean up cron. Cron entries persist in /var/spool/cron/, in /etc/cron.d/, in /etc/cron.daily/, and in user crontabs. Rebooting just restarts crond, which dutifully loads and executes every entry it finds.

What actually helps:

Audit cron entries regularly. Not just root's crontab — every user's.

# List all user crontabs (run as root)
for user in $(cut -f1 -d: /etc/passwd); do
  crontab_content=(crontab -l -u "user" 2>/dev/null)
  if [ -n "$crontab_content" ]; then
    echo "=== $user ==="
    echo "$crontab_content"
  fi
done

# Also check system cron directories
ls -la /etc/cron.d/
ls -la /etc/cron.daily/
ls -la /etc/cron.hourly/

For each entry, ask: does the target script still exist? Does the service it interacts with still run on this server? Is the output going somewhere useful, or is it silently mailing root (which nobody reads)?

If you use systemd timers instead of traditional cron, run systemctl list-timers --all and look for timers in a failed or inactive state that still have a schedule.

The reboot itself is a risk window

Beyond NFS and cron, the reboot event itself creates problems that the reboot was supposed to prevent:

Service ordering. On a server running a web server, a database, and a caching layer, the startup order matters. If the web server starts before the database is ready, health checks fail, load balancers pull the node out of rotation, and monitoring fires alerts. Systemd handles dependencies reasonably well if the unit files declare them correctly, but many third-party applications install unit files with minimal dependency declarations.

Cold caches. A database server that has been running for weeks has its hot dataset in memory. After a reboot, every query hits disk until the cache warms up. During this window, response times spike, and if the server is behind a load balancer, it may receive full production traffic before it is ready. This is not a theoretical concern — it is one of the most common causes of post-reboot performance complaints.

Filesystem checks. Depending on the filesystem and mount count or time interval settings, a reboot may trigger an fsck on ext4 filesystems, adding minutes to boot time. XFS does not do scheduled checks on mount, but ext4 with default tune2fs settings might.

What to do instead of weekly reboots

If you are rebooting weekly to manage resource leaks, identify the leaking process and restart that specific service. systemctl restart <service> is surgical. A full reboot is a shotgun.

If you are rebooting weekly because "it is best practice," reconsider. Linux servers are designed to run for months or years between reboots. The only strong reason to reboot is a kernel update that cannot be applied live (though live-patching solutions exist for some distributions).

Build a pre-reboot and post-reboot checklist for when reboots are genuinely needed:

Before rebooting:

  • Verify all fstab entries point to reachable targets. For NFS, confirm the server and export are up.
  • Review all cron entries and systemd timers. Remove or disable anything that targets decommissioned services.
  • Check that critical services have correct systemd dependencies and are set to enabled so they start on boot.
  • If the server is behind a load balancer, drain it from the pool first.

After rebooting:

  • Verify all expected filesystems are mounted (mount, df -h, and specifically check NFS paths).
  • Confirm all critical services are running (systemctl is-active <service>).
  • Check for failed systemd units: systemctl --failed.
  • Tail syslog and application logs for errors during the first few minutes.
  • If behind a load balancer, wait for cache warming and health checks to pass before adding the node back.

For mail servers specifically, a reboot can trigger queue processing storms and IP reputation issues. Checking your mail server IP against blocklists on a regular schedule catches problems that reboots never will — something covered in Weekly DNSBL Checks on Your Mail Server IP Before Bounces Start Piling Up.

The actual takeaway

Weekly reboots give operators a feeling of control without addressing the specific failure modes that generate tickets. Stale NFS mounts hang the boot. Orphaned cron jobs fire into a broken environment. Cold caches degrade performance. Service ordering issues cause cascading failures.

None of these are prevented by rebooting. Several are caused by it. The correct pattern is monitoring resource usage, restarting only the specific services that need it, auditing cron and mount configurations regularly, and treating every reboot as a planned maintenance event with pre-flight and post-flight checks — not as routine hygiene.