diff -urN smeserver-service_control-2.2.old/createlinks smeserver-service_control-2.2/createlinks --- smeserver-service_control-2.2.old/createlinks 2015-02-15 15:54:20.000000000 +0000 +++ smeserver-service_control-2.2/createlinks 2021-03-29 12:06:10.856776560 +0100 @@ -1,4 +1,27 @@ #!/usr/bin/perl -w +use esmith::Build::CreateLinks qw(:all); +# our event specific for updating with yum without reboot +$event = 'smeserver-service_control-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('action', $event, '30'); +#services we need to restart +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); +#and Server Manager panel link +#panel_link('somefunction', 'manager'); + + # This script creates the symlinks needed by this RPM # Specific support exists to create symlinks within e-smith web "panels" # and for links from named "events" directories into the "actions" directory @@ -13,6 +36,7 @@ ##service2adjust #-------------------------------------------------- foreach my $event (qw( service-access + smeserver-service_control-update' service-one)) { # safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); @@ -43,11 +67,12 @@ #------------------------------------------------- foreach my $event (qw ( service-access + smeserver-service_control-update' service-one)) { event_link("service-control", $event, "90"); } -foreach my $event (qw (service-expand)) +foreach my $event (qw (service-expand smeserver-service_control-update')) { event_link("update-ifcfg", $event, "10"); safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");