diff -urN smeserver-arpwatch-0.3.old/createlinks smeserver-arpwatch-0.3/createlinks --- smeserver-arpwatch-0.3.old/createlinks 2020-10-11 12:29:50.000000000 +0100 +++ smeserver-arpwatch-0.3/createlinks 2021-02-02 12:03:23.581960107 +0000 @@ -2,11 +2,31 @@ use esmith::Build::CreateLinks qw(:all); -service_link_enhanced("arpwatch", "S99", "7"); -service_link_enhanced("arpwatch", "K10", "6"); -service_link_enhanced("arpwatch", "K10", "0"); +#service_link_enhanced("arpwatch", "S99", "7"); +#service_link_enhanced("arpwatch", "K10", "6"); +#service_link_enhanced("arpwatch", "K10", "0"); #safe_touch("root/var/lib/arpwatch/arp.dat"); templates2events("/etc/sysconfig/arpwatch", "bootstrap-console-save"); +# our event specific for updating with yum without reboot +$event = "smeserver-arpwatch-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 + /etc/sysconfig/arpwatch +)) +{ + 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("conf-timezone", $event, "30"); +#services we need to restart +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/arpwatch"); diff -urN smeserver-arpwatch-0.3.old/root/usr/lib/systemd/system/arpwatch.service.d/50koozali smeserver-arpwatch-0.3/root/usr/lib/systemd/system/arpwatch.service.d/50koozali --- smeserver-arpwatch-0.3.old/root/usr/lib/systemd/system/arpwatch.service.d/50koozali 1970-01-01 01:00:00.000000000 +0100 +++ smeserver-arpwatch-0.3/root/usr/lib/systemd/system/arpwatch.service.d/50koozali 2021-02-02 11:49:16.797906959 +0000 @@ -0,0 +1,4 @@ +[Install] +WantedBy= +WantedBy=sme-server.target +