A service starts fine manually but fails at boot because the network isn't up: `bind: Cannot assign requested address`.
IntermediateTroubleshootingsystemd services and journald
Answer
Likely causes → It binds to a specific IP that isn't configured yet when the service starts.
Diagnose →
journalctl -b -u myapp
systemctl list-dependencies myapp --after | grep network
systemctl is-enabled NetworkManager-wait-online systemd-networkd-wait-online
Fix → Add After=network-online.target and Wants=network-online.target, and make sure the matching wait-online service is enabled. Alternatively, bind to 0.0.0.0, or allow binding to absent addresses with net.ipv4.ip_nonlocal_bind=1 (useful for VIPs).
Prevent → Prefer network-online.target for services that bind to specific addresses.
More on systemd services and journald
`systemctl status myapp` shows `Main process exited, code=exited, status=203/EXEC`.BeginnerA service fails with `status=217/USER`.BeginnerA service fails with `status=200/CHDIR`.BeginnerA unit fails with `status=226/NAMESPACE`.AdvancedYou edited a unit file, restarted the service, but the old behaviour persists. `systemctl status` shows `Warning: The unit file, source configuration file or drop-ins of myapp.service changed on disk`.BeginnerYou edited `/usr/lib/systemd/system/nginx.service` directly and after a package update your change vanished.Beginner