[systemd-devel] When System is Degraded

Aaron_Wright at selinc.com Aaron_Wright at selinc.com
Mon Jun 6 17:27:57 UTC 2016


I'm using systemd in an embedded device that some some LEDs. I'd like to 
make an LED red when the system starts up degraded, and green when 
everything is working normally.
I'm having a hard time figuring out where to fit this in.
I tried using a service that runs "systemctl is-system-running" after I've 
reached my target, but that command returns "starting", obviously.
What's a better way to run a command when the system is "running" vs 
"degraded"?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160606/c162cf31/attachment.html>


More information about the systemd-devel mailing list