3 ms·
It may be Stockholm Syndrome but I have come to appreciate systemd-style unit files for services. Being able to say "here's the binary, run it as this user, res
by floren 6y ago
It may be Stockholm Syndrome but I have come to appreciate systemd-style unit files for services. Being able to say "here's the binary, run it as this user, restart it if it exits" beats copying & tweaking bash scripts which is how I dimly remember sysv init working. Doubtless other more recent init systems have similar capabilities.
Anything to do with systemd logging is a goddamn nightmare though. It loves to tell you that a service has failed to start, but doesn't try to do anything like show you stderr from the process that might help debug.
- yawaramin 6y ago> It loves to tell you that a service has failed to start, but doesn't try to do anything like show you stderr from the process that might help debug. It does, actually. sudo systemctl status the-service ...prints out the last few lines of the service log. sudo journactl -u the-service ...shows you all the logs. You can jump to the bottom if you want and start debugging right away.