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