openhab / openhab-linuxpkg

Repo for Linux packages
Eclipse Public License 2.0
18 stars 33 forks source link

Add prerm and postrm scripts for addons #116

Closed BClark09 closed 4 years ago

BClark09 commented 6 years ago

If openhab-*addons is uninstalled then the kar folder should be removed and the service restarted if running.

BClark09 commented 5 years ago

@kaikreuzer, would it be "cleaner" to clean the cache and tmp folders if the addons/*.kar files are removed? Or would a restarting the service be sufficient?

kaikreuzer commented 5 years ago

Why do we need to restart at all? What happens, if the kar is removed? I'd assume the bundles are uninstalled and the runtime will try to reload them from the remote repo within a minute again.

BClark09 commented 4 years ago

Closing, since I think the behaviour Kai described aboves works as intended, so no restart necessary.