[__systemd_service] new type to manage the state of systemd services
The cdist type I've submitted to Mattermost earlier. It's the brother of
__systemd_unit and controls the running state of the services.
States can be following:
- running (default)
If the state is running, some actions can be applied, which can be useful, e. g. you changed a configuration file for a daemon:
On the top, I've build a feature which only executes the action if a dependency did something (e. g. wrote something to
$__messages_in). As example, the type will only reload the service if the type
__file/etc/foo (given as dependency) was changed (e. g. written a message).