News for hackers. Stuff that matters.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by floren on Thursday October 01, 2020 @05:06PM (#24656148)
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.

Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by yawaramin on Thursday October 08, 2020 @09:17PM (#24725728)
> 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.