#StackBounty: #systemd #saltstack SaltStack: Execute `systemctl –system daemon-reload` if service file was changed

Bounty: 50

We deploy and change system service files via SaltStack.

For example, if file /etc/systemd/system/superfoo.service gets changed, then systemd emits this warning:

Warning: Unit file of superfoo.service changed on disk, 
         'systemctl --system daemon-reload' recommended.

How to automate this with salt-stack?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.