Comment 5 for bug 2009029

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote (last edit ):

Also for option one, if we want to use in-role handlers that listen for "systemd service changed" - we will need to somehow check if the service is actually should be enabled/started. And we can't filter disabled services out as they won't be passed to systemd role and disabled if they should be.

So it not pleasant situation from any angle. Which makes me think in reverse direction, if we should to always notify `systemd service changed` from roles and drop in-role handlers to prevent mutiple restarts. Just leave handlers for services that are not managed with systemd_service.