A service fails with `status=209/STDOUT` after you added `StandardOutput=append:/var/log/myapp/out.log`.
IntermediateTroubleshootingsystemd services and journald
Answer
Likely causes → systemd couldn't open the log file: the directory doesn't exist, or sandboxing/SELinux prevents it.
Diagnose →
ls -ld /var/log/myapp
journalctl -u myapp -b | head
sudo ausearch -m AVC -ts recent
Fix → Use LogsDirectory=myapp so systemd creates /var/log/myapp with the right owner, or create it manually. Simplest: drop the file and let output go to the journal.
Prevent → Prefer journald plus log shipping over custom log files.
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