-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'apt purge openhab2' failes with still active process by frontail #285
Comments
Hi @BClark09 |
Hi @mstormi, are you sure this happened with a https://github.com/openhab/openhab-linuxpkg/blob/master/resources/control-runtime/postrm When reading up on what should be done I came across this and think that the following may be the best way of making sure these processes aren't active before the user is deleted:
However, I think we discussed this further in openhab/openhab-linuxpkg#108 in which we came to the conclusion that we shouldn't force delete the user, just gracefully handle it (i.e. if the user exists, don't try to create it again on next install). I still need to think about that properly but we can use the first part of the command above to test for active processes, and list them in the uninstall process. |
Oh thought I had responded already. AND, to do it right, we should think about doing the same to ALL other services that to make sense require openhab to be installed as well. |
I don't think it's a good idea to refer to other packages if openHAB isn't dependant on them. The openHAB debian package isn't "aware" of openHABian, nor the other packages that it comes with. The packages should be kept completely separate. What might make sense to to modify the dependant service files when they are installed with openHABian scripts, so that they reference the openHAB service file. |
Hmm I agree but don't know if it would work to only add systemd dependencies (and nothing in pkg preremove etc scripts) . Yes frontail is dependant on openhab so adding that dependency into systemd files _should_ result in frontail being shutdown/restarted on openhab shutdown/startup upon openhab pkg removal/installation. But this is just how I think systemd framework should handle this. I'm not deeply enough into it to confirm. Are you?
|
Frontail and openHAB are not dependent. Frontail just happens to use the log file created by openHAB... Imho we should 1. change frontail to another user AND/OR fix the issues with the openhab user (as discussed in openhab/openhab-linuxpkg#108) |
@BClark09 would PartOf=openhab2 in frontail's systemd config be a solution? |
pinging @BClark09 |
@BClark09
Related to openhab/openhab-linuxpkg#108
The text was updated successfully, but these errors were encountered: