Hi Frederic, On 09/16/2011 01:39 PM, Frederic Crozat wrote:
There are macros and I haven't yet written the documentation because some are still in flux and systemd preset handling isn't done yet.
Look at acpid package for a good example (but the *migration* macros will disappear soon).
Thanks, I have also had a a look at systemd package and found the systemd macros with explanation. Now since I am at the latest stage to push the package to factory, what how does one do the migration phase according to the macros I have found in "systemd" package # when migrating a package from sysvinit to systemd : %triggerun -- package_name < version_where_switch_occured %service_migrate_to_systemd [ -l run_level ] service_name.service But in the acpid example it is only the service_migrate_to_systemd %pre %service_migrate_to_systemd_pre acpid Also in other parts %postun %restart_on_update acpid %{insserv_cleanup} %service_migrate_to_systemd_postun acpid %service_del_postun acpid.service so if I have a code like below as I am maintaining the package for 11.3 11.4 and Factory am I on the right track ? %postun init %if 0%{?suse_version}>1140 %service_del_postun %name-init.service %else %restart_on_update %name-init %insserv_cleanup %stop_on_removal %endif %if 0%{?suse_version}>1140 %triggerun -- shorewall-init < 4.4.23.2 %service_migrate_to_systemd shorewall-init.service %endif Thanks Togan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org