Is it possible to restart a systemd service via a rule

Hi guys,

Hi guys, I have a mqtt systemd service that I need to restart when an item state is closed, Is this possible?


Have a look at this thread: OpenHAB sudo [Exec Binding]
Preparation of sudo and systemctl restart is explained there.


Assuming that the permissions are set correctly, so that your openHAB user can execute a command.

You should just be able to use the

execCommandLine feature within the rule.

Look through a thread like this for more information

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.