3 ms·
I’ve written a handful of systemd units now and, while the simple cases are nice, anything more complicated is really hard to figure out by reading manpages or
by fiddlerwoaroof 5y ago
I’ve written a handful of systemd units now and, while the simple cases are nice, anything more complicated is really hard to figure out by reading manpages or other official sources of documentation. And, additionally, I’ve found it’s often easier to write a shell script to be invoked by systemd than to handle certain issues in the unit file itself.
As far as the watchdog but things go there’s plenty of good enough solutions that don’t really on systemd: daemonize, DJB’s daemontools, etc.
- thayne 5y agoI've written many systemd services, and other units. Some of which were quite complicated. I found the man pages extremely useful. Moreso than the manpages for sysvinit or upstart, when I used those systems.
- kaba0 5y ago> I’ve found it’s often easier to write a shell script to be invoked by systemd than to handle certain issues in the unit file itself. But that’s a completely fine solution, service files are not meant for declaring arbitrary logic.