Server reboot: checking access and service startup

The first reboot of an isolated Debian VM, a fresh SSH login and an independent console. How running services differ from services that start automatically.

A server inside a reboot ring, with a key, shield and service symbols nearby.

The previous combined workflow reached a private foundation: administrator access, the firewall, Nginx, PHP and Redis were working. I am now connecting that foundation to WireGuard, Symfony delivery and HTTPS. This requires two separate answers: whether the server works now, and whether the required access returns after a reboot.

Running now and starting automatically

A service can be started manually while automatic startup remains disabled. Automatic startup can also be enabled even though the next start will fail. I therefore inspect enabled and active separately. These commands show the respective properties; they do not themselves test an actual reboot.

systemctl is-enabled deploy-cli-firewall-boot.service
systemctl is-enabled deploy-cli-php85.service
systemctl is-enabled nginx.service

systemctl is-active deploy-cli-firewall-boot.service
systemctl is-active deploy-cli-php85.service
systemctl is-active nginx.service

An existing SSH session does not replace a fresh login

Before accepting access, I open a separate connection with the selected key and test password sudo. WireGuard additionally needs a login through the private address, plus handshake and traffic checks. An existing SSH connection may survive a rule change, so it cannot by itself establish that new access works.

The console must identify the current boot

The independent console must show the same machine and its current boot. The boot identifier must change after reboot. I retain the earlier console record as history rather than substituting the new value. This prevents a successful check before reboot from silently becoming a check after it.

Keep the package history as well

The combined workflow installs base utilities before Nginx and PHP. Those operations remain at the beginning of the history after reboot. Selecting Redis alone rather than every data service does not permit omitting genesis or reordering records. The new check must compare the complete approved path against actual package state.

What this VM test covers

I start with a separate, isolated Debian VM. The test image has two kernels and a UEFI boot entry prepared in advance for the reboot recovery check. This is a prerequisite of this fixture: it does not prove that the CLI already prepares every clean provider image automatically. The VM console also does not replace a future check of the Mirohost console.

The shared workflow creates an administrator, installs the required utilities, and configures the firewall, two PHP pools, Nginx and the selected Redis service. Preparing WireGuard keys and configuration does not start the tunnel. At this point I do not accept private SSH over it.

One reboot request

First I review the plan: the expected kernel, the absence of failed units and access through an independent console. After one reboot request, I wait for a new SSH connection and log in through the console again. The machine identity matches and the boot identity has changed. Earlier results and journals remain unchanged.

I then enable startup for PHP, Redis, Nginx and the timers in separate stages. Each stage has a plan, an explicitly approved operation and a verification. This first reboot provides the transition from initially running services to startup acceptance; proving their automatic startup requires another real reboot after the complete configuration.

Why an unknown result does not mean “retry”

The workflow keeps separate intent, execution and completion records. Losing a connection after a request does not mean the command never ran. I first inspect the actual state and saved result. Starting again from an unknown point could repeat a change already under way.

I checked a different case for the fully completed initial workflow: a replay bound to the exact completion performed only a fresh verification, with no new server changes. A request without those bindings was refused. This protects against accidentally configuring the same server twice.

Genuine VTE terminal summarizing saved isolated-VM results. An independent console confirmed the first reboot; startup was configured afterwards. Proving automatic startup requires a further reboot. Setup commands did not rerun during capture.

Check the private site separately

Recovered SSH does not establish Symfony readiness. A reboot needs fresh PHP-pool, Nginx and HTTPS responses: refusal without a password, refusal with an incorrect password, and the expected application response with the correct password. Password protection, noindex and restrictions on internal files remain. I am preparing this combined check on a separate VM; this new workflow has not reinstalled the existing educational VPS.

  1. Operations & Security A new server boot: separate firewall acceptance through CLI
  2. Operations & Security WireGuard after reboot: startup and new-boot acceptance
  3. Platform Engineering From first root login to a private server foundation
  4. Platform Engineering Private Symfony on a shared PHP runtime: delivery and HTTPS