Field notes / Note 008

Active is not enabled

2 min

A deploy script was rewritten to pull releases instead of pushing them. The old one ran systemctl enable --now. The new one only restarted the services.

Everything came up. The deploy output was clean. The services were active, and the site answered.

They were also disabled, so the next reboot would have left the application down. Nothing in the deploy output hinted at it, because two of the five units had been enabled elsewhere and looked fine. It was found by auditing is-enabled after the fact, not is-active.

The deploy now enables on every run. Then the box was rebooted on purpose. About twenty seconds down, and all five units came back alone.

A running service tells you about now. It says nothing about Tuesday at 3am.