Frederic Crozat wrote:
And here is a change, for handling sysvinit to systemd migration, without relying on triggers : [...] And usage is like this : %pre %service_migrate_to_systemd_pre foobar
%post %service_migrate_to_systemd_post foobar %service_add foobar.service
%preun %service_del_preun foobar.service
%postun %service_migrate_to_systemd_postun foobar %service_del_postun foobar.service
Comments welcome (you can use package home:fcrozat:systemd:systemd which contains the changes).
What about integrating %service_migrate_to_systemd_post into %service_add and just do it automatically? Same for %service_migrate_to_systemd_postun. %service_migrate_to_systemd_pre could be renamed to a more generic %service_add_pre then which would allow us to hook in other things in the future if needed. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org