systemd service restarts constantly, status says code=exited
Ubuntu 22.04, systemd 249. Wrote a unit for a small Python service. It starts, dies, then restarts every few seconds. systemctl status shows Active: inactive (dead) and code=exited, status=1/FAILURE, but journalctl -u myservice only shows the start and stop lines, no traceback. Running the exact ExecStart command by hand in a shell works fine. User is www-data, WorkingDirectory set. What would make it fail only under systemd?
3 replies