Is it possible to restart a systemd service via a rule

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