[systemd-devel] Q: Roles for a one-shot service

Reindl Harald h.reindl at thelounge.net
Thu Feb 25 07:39:22 UTC 2021



Am 25.02.21 um 08:12 schrieb Ulrich Windl:
> Hi!
> 
> I wonder: I'm thinking of a monitoring-type of one-shot service that should be run periodically to update some external status display with runtime data.
> In addition to that periodic activations, I'd like to run the service also during boot and shutdown, possibly supplying a special parameter to indicate that a boot or shutdown is happening.
> I'm unsure how to model that with systemd. Should I define one service or three services?
> Any proposals?

seperate services is clearly the systemd way and given how easy they are 
to write keep them simple and specific


More information about the systemd-devel mailing list