/[smecontribs]/rpms/smeserver-arpwatch/contribs10/smeserver-arpwatch-0.3-Add-in-systemd-stuff.patch
ViewVC logotype

Contents of /rpms/smeserver-arpwatch/contribs10/smeserver-arpwatch-0.3-Add-in-systemd-stuff.patch

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


Revision 1.1 - (show annotations) (download)
Tue Feb 2 12:16:01 2021 UTC (3 years, 3 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-arpwatch-0_3-5_el7_sme, smeserver-arpwatch-0_3-6_el7_sme, smeserver-arpwatch-0_3-3_el7_sme, smeserver-arpwatch-0_3-4_el7_sme, smeserver-arpwatch-0_3-7_el7_sme, smeserver-arpwatch-0_3-8_el7_sme, smeserver-arpwatch-0_3-9_el7_sme, HEAD
* Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme
- Add in Createlink stuff for systemd [SME: 11026]

1 diff -urN smeserver-arpwatch-0.3.old/createlinks smeserver-arpwatch-0.3/createlinks
2 --- smeserver-arpwatch-0.3.old/createlinks 2020-10-11 12:29:50.000000000 +0100
3 +++ smeserver-arpwatch-0.3/createlinks 2021-02-02 12:03:23.581960107 +0000
4 @@ -2,11 +2,31 @@
5
6 use esmith::Build::CreateLinks qw(:all);
7
8 -service_link_enhanced("arpwatch", "S99", "7");
9 -service_link_enhanced("arpwatch", "K10", "6");
10 -service_link_enhanced("arpwatch", "K10", "0");
11 +#service_link_enhanced("arpwatch", "S99", "7");
12 +#service_link_enhanced("arpwatch", "K10", "6");
13 +#service_link_enhanced("arpwatch", "K10", "0");
14
15 #safe_touch("root/var/lib/arpwatch/arp.dat");
16
17 templates2events("/etc/sysconfig/arpwatch", "bootstrap-console-save");
18
19 +# our event specific for updating with yum without reboot
20 +$event = "smeserver-arpwatch-update";
21 +#add here the path to your templates needed to expand
22 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
23 +
24 +foreach my $file (qw(
25 + /etc/systemd/system-preset/49-koozali.preset
26 + /etc/sysconfig/arpwatch
27 +))
28 +{
29 + templates2events( $file, $event );
30 +}
31 +
32 +#action needed in case we have a systemd unit
33 +event_link("systemd-default", $event, "10");
34 +event_link("systemd-reload", $event, "50");
35 +#action specific to this package
36 +#event_link("conf-timezone", $event, "30");
37 +#services we need to restart
38 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/arpwatch");
39 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
40 --- smeserver-arpwatch-0.3.old/root/usr/lib/systemd/system/arpwatch.service.d/50koozali 1970-01-01 01:00:00.000000000 +0100
41 +++ smeserver-arpwatch-0.3/root/usr/lib/systemd/system/arpwatch.service.d/50koozali 2021-02-02 11:49:16.797906959 +0000
42 @@ -0,0 +1,4 @@
43 +[Install]
44 +WantedBy=
45 +WantedBy=sme-server.target
46 +

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