Lennart Poettering <lenn...@poettering.net> wrote on 06/07/2016 02:44:18 
AM:
> aaron_wri...@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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to