/[smecontribs]/rpms/smeserver-service_control/contribs10/smeserver-service_control-2.2-Add-Update-event-to-createlinks.patch
ViewVC logotype

Annotation of /rpms/smeserver-service_control/contribs10/smeserver-service_control-2.2-Add-Update-event-to-createlinks.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Mar 29 11:11:12 2021 UTC (3 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-service_control-2_2-17_el7_sme, smeserver-service_control-2_2-16_el7_sme, smeserver-service_control-2_2-15_el7_sme, HEAD
* Mon Mar 29 2021 Brian Read <brianr@bjsystems.co.uk> 2.2-15.sme
- Add Update event to createlinks [SME: 11036]

1 brianr 1.1 diff -urN smeserver-service_control-2.2.old/createlinks smeserver-service_control-2.2/createlinks
2     --- smeserver-service_control-2.2.old/createlinks 2015-02-15 15:54:20.000000000 +0000
3     +++ smeserver-service_control-2.2/createlinks 2021-03-29 12:06:10.856776560 +0100
4     @@ -1,4 +1,27 @@
5     #!/usr/bin/perl -w
6     +use esmith::Build::CreateLinks qw(:all);
7     +# our event specific for updating with yum without reboot
8     +$event = 'smeserver-service_control-update';
9     +#add here the path to your templates needed to expand
10     +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
11     +
12     +foreach my $file (qw(
13     + /etc/systemd/system-preset/49-koozali.preset
14     +))
15     +{
16     + templates2events( $file, $event );
17     +}
18     +#action needed in case we have a systemd unit
19     +event_link('systemd-default', $event, '10');
20     +event_link('systemd-reload', $event, '50');
21     +#action specific to this package
22     +#event_link('action', $event, '30');
23     +#services we need to restart
24     +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service);
25     +#and Server Manager panel link
26     +#panel_link('somefunction', 'manager');
27     +
28     +
29     # This script creates the symlinks needed by this RPM
30     # Specific support exists to create symlinks within e-smith web "panels"
31     # and for links from named "events" directories into the "actions" directory
32     @@ -13,6 +36,7 @@
33     ##service2adjust
34     #--------------------------------------------------
35     foreach my $event (qw( service-access
36     + smeserver-service_control-update'
37     service-one))
38     {
39     # safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
40     @@ -43,11 +67,12 @@
41     #-------------------------------------------------
42    
43     foreach my $event (qw ( service-access
44     + smeserver-service_control-update'
45     service-one))
46     {
47     event_link("service-control", $event, "90");
48     }
49     -foreach my $event (qw (service-expand))
50     +foreach my $event (qw (service-expand smeserver-service_control-update'))
51     {
52     event_link("update-ifcfg", $event, "10");
53     safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed