Hacker News new | ask | show | jobs
by kinghajj 3446 days ago
Funnily enough, just dealt with a bug caused by this at work. The small PC would boot before the cellular modem had an Internet connection. Services that communicate via MQTT would immediately attempt to reach the broker, and throw an exception. My quick fix was just to add "RestartSec=5" so that the faulted state would never be entered.
1 comments

Ironic considering how systemd developers brag about eliminating race conditions and sleep calls from init scripts.