diff -urN smeserver-libreswan-xl2tpd-0.5.old/createlinks smeserver-libreswan-xl2tpd-0.5/createlinks --- smeserver-libreswan-xl2tpd-0.5.old/createlinks 2021-03-01 10:38:23.968020934 +0000 +++ smeserver-libreswan-xl2tpd-0.5/createlinks 2021-03-02 11:51:15.555838732 +0000 @@ -10,6 +10,28 @@ use esmith::Build::CreateLinks qw(:all); +# our event specific for updating with yum without reboot +$event = "smeserver-libreswan-xl2tpd-update"; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event + +foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset +)) +{ + templates2events( $file, $event ); +} + +#action needed in case we have a systemd unit +event_link("systemd-default", $event, "10"); +event_link("systemd-reload", $event, "50"); + +#action specific to this package +event_link("ip-up.xl2tpd", $event, "60"); + +#services we need to restart +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/xl2tpd"); + #-------------------------------------------------- # templates for events #-------------------------------------------------- @@ -50,10 +72,10 @@ event_link( "xl2tpd-interface-access", $eventXl2tpd, "70" ); # Runlevel init links. -service_link_enhanced( "xl2tpd", "S95", "7" ); -service_link_enhanced( "xl2tpd", "K21", "6" ); -service_link_enhanced( "xl2tpd", "K21", "0" ); -service_link_enhanced( "xl2tpd", "K21", "1" ); +#service_link_enhanced( "xl2tpd", "S95", "7" ); +#service_link_enhanced( "xl2tpd", "K21", "6" ); +#service_link_enhanced( "xl2tpd", "K21", "0" ); +#service_link_enhanced( "xl2tpd", "K21", "1" ); # On ip-up.xl2tpd expand and restart masq diff -urN smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf --- smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf 1970-01-01 01:00:00.000000000 +0100 +++ smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf 2021-03-01 14:31:21.000000000 +0000 @@ -0,0 +1,5 @@ +[Unit] +After=network.target network.service wan.service +[Install] +WantedBy=sme-server.target + diff -urN smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf --- smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf 1970-01-01 01:00:00.000000000 +0100 +++ smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf 2021-03-01 14:31:21.000000000 +0000 @@ -0,0 +1,5 @@ +[Unit] +After=network.target network.service wan.service +[Install] +WantedBy=sme-server.target +