On Wed, Feb 12, 2014 at 02:59:02PM +0100, Johannes Meixner wrote:
Hello,
I would like to know how to correctly deregister services in RPM package install scripts.
https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines only talks about "Register services in install scripts"
Assume an older version of package "foobar" that provided both foo.service and bar.service as described in https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines is already installed.
Now a newer version of "foobar" does no longer provide bar.service (but foo.service is still provided).
What is the correct way in foobar.spec to deregister bar.service when updating the package "foobar"?
I would like to use something like --------------------------------------------------- %pre %service_add_pre foo.service %service_del_pre bar.service
%post %service_add_post foo.service %service_del_post bar.service ---------------------------------------------------
I found "service_del_post" only mentioned in http://lists.opensuse.org/opensuse-packaging/2011-06/msg00160.html but it is not documented at https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines so that I don't know if it really exists and even if it exists I don't know if it would do "the right thing".
The _old_ package is supposed to deregister the services it brings ... The new one should not need to care about that. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org