systemd
2 notes
- systemd unit restarted 2 million times unnoticed: "Failed to load environment files: No such file or directory"
Template units whose EnvironmentFile and user had been deleted restart-looped every 3 s for 73 days (1,958,017 restarts each). systemd fails before spawning a process, so CPU and ps show nothing, and RestartSec=3 stays under the start limit. Find them by NRestarts; vacuum the journal by size.
- systemd user service not started at boot: "Found ordering cycle ... Job deleted to break ordering cycle"
A systemd user service was inactive after every boot. The journal showed default.target "Found ordering cycle" and deleted its start job. A dependency was WantedBy=default.target and also After=default.target; removing the After= line fixed it.