Hi Wolfgang,

What about using the built-in "Edit Service..." script function to stop and
restart the service?

Detect an installed service. If it is installed and running, stop the
service (give it a few seconds to close down, check again if it is running),
then replace the service file(s) and restart it.

Friedrich