/[smecontribs]/rpms/smeserver-mailman/contribs10/smeserver-mailman-1.5.0-bz11278-systemd.patch
ViewVC logotype

Contents of /rpms/smeserver-mailman/contribs10/smeserver-mailman-1.5.0-bz11278-systemd.patch

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


Revision 1.2 - (show annotations) (download)
Sun Apr 10 20:21:05 2022 UTC (2 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-12_el7_sme, smeserver-mailman-1_5_0-17_el7_sme, smeserver-mailman-1_5_0-21_el7_sme, smeserver-mailman-1_5_0-19_el7_sme, smeserver-mailman-1_5_0-13_el7_sme, smeserver-mailman-1_5_0-20_el7_sme, smeserver-mailman-1_5_0-15_el7_sme, smeserver-mailman-1_5_0-16_el7_sme, smeserver-mailman-1_5_0-14_el7_sme, smeserver-mailman-1_5_0-18_el7_sme, HEAD
Changes since 1.1: +2 -2 lines
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
- fix missing service start [SME: 11278]
  add update event

1 diff -Nur --no-dereference smeserver-mailman-1.5.0.old/createlinks smeserver-mailman-1.5.0/createlinks
2 --- smeserver-mailman-1.5.0.old/createlinks 2022-04-10 12:33:34.976000000 -0400
3 +++ smeserver-mailman-1.5.0/createlinks 2022-04-10 16:20:19.108000000 -0400
4 @@ -55,8 +55,11 @@
5 # removed because cause signal-event and panel to hang
6 # safe_symlink("restart",
7 # "root/etc/e-smith/events/$event/services2adjust/mailman");
8 -safe_symlink("../actions/mailman-restart",
9 - "root/etc/e-smith/events/$event/S94mailman-restart");
10 +safe_symlink("restart",
11 + "root/etc/e-smith/events/$event/services2adjust/mailman");
12 +
13 +#safe_symlink("../actions/mailman-restart",
14 +# "root/etc/e-smith/events/$event/S94mailman-restart");
15 }
16
17
18 @@ -74,6 +77,29 @@
19
20 }
21
22 -service_link_enhanced('mailman', 'S98', '7');
23 -service_link_enhanced('mailman', 'K12', '6');
24 -service_link_enhanced('mailman', 'K12', '0');
25 +
26 +my $event= "smeserver-mailman-update";
27 +
28 +templates2events( "/etc/dar/DailyBackup.dcf", $event);
29 +templates2events( "/usr/lib/mailman/Mailman/mm_cfg.py", $event);
30 +templates2events( "/etc/httpd/conf/httpd.conf", $event);
31 +templates2events("/var/qmail/users/assign", $event);
32 +templates2events("/var/service/qpsmtpd/config/goodrcptto", $event);
33 +
34 +safe_symlink("/usr/lib/mailman/bin/post-install",
35 + "root/etc/e-smith/events/$event/S20mailman-post-install");
36 +safe_symlink("/var/qmail/bin/qmail-newu",
37 + "root/etc/e-smith/events/$event/S55email-assign");
38 +#systemd-specific action mandatory for this package-update event
39 +event_link("systemd-reload", $event, "89");
40 +event_link("systemd-default", $event, "88");
41 +
42 +safe_symlink("sigusr1",
43 + "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
44 +safe_symlink("restart",
45 + "root/etc/e-smith/events/$event/services2adjust/mailman");
46 +safe_symlink("sighup",
47 + "root/etc/e-smith/events/$event/services2adjust/qpsmtpd");
48 +safe_symlink("sighup",
49 + "root/etc/e-smith/events/$event/services2adjust/sqpsmtpd");
50 +
51 diff -Nur --no-dereference smeserver-mailman-1.5.0.old/root/usr/lib/systemd/system/mailman.service.d/51koozali.conf smeserver-mailman-1.5.0/root/usr/lib/systemd/system/mailman.service.d/51koozali.conf
52 --- smeserver-mailman-1.5.0.old/root/usr/lib/systemd/system/mailman.service.d/51koozali.conf 1969-12-31 19:00:00.000000000 -0500
53 +++ smeserver-mailman-1.5.0/root/usr/lib/systemd/system/mailman.service.d/51koozali.conf 2022-04-10 15:02:35.159000000 -0400
54 @@ -0,0 +1,2 @@
55 +[Install]
56 +WantedBy=sme-server.target

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