/[smecontribs]/rpms/smeserver-bridge-interface/contribs10/smeserver-bridge-interface-0.2-Update-Createlinks-for-systemd.patch
ViewVC logotype

Contents of /rpms/smeserver-bridge-interface/contribs10/smeserver-bridge-interface-0.2-Update-Createlinks-for-systemd.patch

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


Revision 1.1 - (show annotations) (download)
Wed Jan 20 15:45:25 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-bridge-interface-0_2-6_el7_sme, smeserver-bridge-interface-0_2-3_el7_sme, smeserver-bridge-interface-0_2-4_el7_sme, smeserver-bridge-interface-0_2-7_el7_sme, smeserver-bridge-interface-0_2-8_el7_sme, smeserver-bridge-interface-0_2-5_el7_sme, smeserver-bridge-interface-0_2-9_el7_sme, smeserver-bridge-interface-0_2-2_el7_sme, HEAD
* Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme
- Initial Import to SME10 [SME: 11324]
- Update-Createlinks-for-systemd.patch

1 diff -urN smeserver-bridge-interface-0.2.old/createlinks smeserver-bridge-interface-0.2/createlinks
2 --- smeserver-bridge-interface-0.2.old/createlinks 2013-11-11 17:18:21.000000000 +0000
3 +++ smeserver-bridge-interface-0.2/createlinks 2021-01-19 12:03:55.089684911 +0000
4 @@ -2,12 +2,41 @@
5
6 use esmith::Build::CreateLinks qw(:all);
7
8 -# Start and stop links
9 +# our event specific for updating with yum without reboot
10 +$event = "smeserver-bridge-interface-update";
11
12 -service_link_enhanced("bridge", "S80", "7");
13 -service_link_enhanced("bridge", "K01", "6");
14 -service_link_enhanced("bridge", "K01", "0");
15 -service_link_enhanced("bridge", "K01", "1");
16 +
17 +#add here the path to your templates needed to expand
18 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
19 +
20 +foreach my $file (qw(
21 + /etc/systemd/system-preset/49-koozali.preset
22 +
23 +
24 +))
25 +{
26 + templates2events( $file, $event );
27 +}
28 +
29 +
30 +#action needed in case we have a systemd unit
31 +event_link("systemd-default", $event, "10");
32 +event_link("systemd-reload", $event, "50");
33 +
34 +#action specific to this package
35 +event_link("bridge-disable", "$event", "02");
36 +event_link("bridge-enable", "$event", "98");
37 +
38 +
39 +#services we need to restarta
40 +#none?
41 +
42 +
43 +# Start and stop links - SME9
44 +#service_link_enhanced("bridge", "S80", "7");
45 +#service_link_enhanced("bridge", "K01", "6");
46 +#service_link_enhanced("bridge", "K01", "0");
47 +#service_link_enhanced("bridge", "K01", "1");
48
49 foreach my $event (qw/console-save bootstrap-console-save/){
50 event_link("bridge-disable", "$event", "02");

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