A service fails with `status=200/CHDIR`.
BeginnerTroubleshootingsystemd services and journald
Answer
Likely causes → WorkingDirectory= doesn't exist or the service user can't enter it.
Diagnose →
systemctl cat myapp | grep WorkingDirectory
sudo -u appuser test -x /opt/myapp && echo ok
namei -l /opt/myapp
Fix → Create the directory with correct ownership, fix parent permissions, or prefix with - (WorkingDirectory=-/opt/myapp) to make it optional.
Prevent → Use StateDirectory= / RuntimeDirectory= so systemd creates directories with the right owner.
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 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`systemctl start myapp` returns immediately with success, but the app isn't running a second later and `status` shows `inactive (dead)` with `code=exited, status=0/SUCCESS`.Intermediate