[systemd-devel] When System is Degraded
Aaron_Wright at selinc.com
Aaron_Wright at selinc.com
Tue Jun 7 15:38:43 UTC 2016
Lennart Poettering <lennart at poettering.net> wrote on 06/07/2016 02:44:18
AM:
> Aaron_Wright at selinc.com wrote:
> > What's a better way to run a command when the system is "running" vs
> > "degraded"?
>
> Hmm, that's a very good question.
>
> Other than suggesting to write a small service that waits for the
> StartupFinished bus signal I have no good suggestion I fear. That
> service could start any time, would just wait for the signal, and do
> what you want it to do, and exit then...
>
> Lennart
>
> --
> Lennart Poettering, Red Hat
That's pretty much what I ended up with.
Though I wanted the service to hang around so that it could continually
monitor the system. So if the system becomes degraded at any point, the
LED will turn red (and vise-versa).
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160607/b3b42507/attachment.html>
More information about the systemd-devel
mailing list