Hello, On Feb 12 18:04 Frederic Crozat wrote (excerpt):
On Wednesday 12 February 2014 14:59:02 Johannes Meixner wrote:
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).
... Or you continue to ship them...
No red herring please. Can we please not wander from the subject but stay on my generic question that applies to all packages: How exactly should the RPM spec file scriptles be in package foobar version 1 versus foobar version 2 when foobar version 1 provides foo.service and bar.service but foobar version 2 still provides only foo.service but does no longer provide bar.service? According to "Register services in install scripts" in http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines foobar.spec for version 1 should be ------------------------------------------------------------------------ %pre %service_add_pre foo.service bar.service %post %service_add_post foo.service bar.service %preun %service_del_preun foo.service bar.service %postun %service_del_postun foo.service bar.service ------------------------------------------------------------------------ My question is how should foobar.spec for version 2 look like? According to http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines I imagine foobar.spec for version 2 could be either ------------------------------------------------------------------------ %pre %service_add_pre foo.service %post %service_add_post foo.service %preun %service_del_preun foo.service %postun %service_del_postun foo.service ------------------------------------------------------------------------ or ------------------------------------------------------------------------ %pre %service_add_pre foo.service %post %service_add_post foo.service %preun %service_del_preun foo.service bar.service %postun %service_del_postun foo.service bar.service ------------------------------------------------------------------------ Can someone tell me if one of the two above is the right one or provide information what the right one is? Preferably I would like if http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines get enhanced accordingly. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org