/[smeserver]/rpms/e-smith-email/sme10/e-smith-email-5.6.0-bz11133-bz11102-systemd-update.patch
ViewVC logotype

Contents of /rpms/e-smith-email/sme10/e-smith-email-5.6.0-bz11133-bz11102-systemd-update.patch

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


Revision 1.1 - (show annotations) (download)
Fri Dec 11 14:42:45 2020 UTC (3 years, 10 months ago) by jpp
Branch: MAIN
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.0-8.sme
- create -update event [SME: 11133]
- move smtp-auth-proxy to systemd [SME: 11102]

1 diff -Nur e-smith-email-5.6.0.old/createlinks e-smith-email-5.6.0/createlinks
2 --- e-smith-email-5.6.0.old/createlinks 2006-03-14 14:23:58.000000000 -0500
3 +++ e-smith-email-5.6.0/createlinks 2020-12-11 09:36:24.311000000 -0500
4 @@ -71,7 +71,7 @@
5 #--------------------------------------------------
6 $event = "email-update";
7
8 -safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");
9 +safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/masq");
10 safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smtp-auth-proxy");
11
12 #--------------------------------------------------
13 @@ -117,15 +117,19 @@
14 $event = "ip-change";
15
16 #--------------------------------------------------
17 +# actions for e-smith-email-update event:
18 +#--------------------------------------------------
19 +$event = "e-smith-email-update";
20 +# systemd-specific action mandatory for this package-update event
21 +event_link("systemd-reload", $event, "89");
22 +event_link("systemd-default", $event, "88");
23 +safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/smtp-auth-proxy");
24 +
25 +#--------------------------------------------------
26 # actions for pseudonym-{create,delete,modify}
27 #--------------------------------------------------
28 foreach $event ( qw(pseudonym-create pseudonym-modify pseudonym-delete) )
29 {
30 }
31
32 -safe_symlink("daemontools", "root/etc/rc.d/init.d/smtp-auth-proxy");
33 -service_link_enhanced("smtp-auth-proxy", "S75", "7");
34 -service_link_enhanced("smtp-auth-proxy", "K50", "6");
35 -service_link_enhanced("smtp-auth-proxy", "K50", "0");
36 -service_link_enhanced("smtp-auth-proxy", "K50", "1");
37
38 diff -Nur e-smith-email-5.6.0.old/root/usr/lib/systemd/system/smtp-auth-proxy.service e-smith-email-5.6.0/root/usr/lib/systemd/system/smtp-auth-proxy.service
39 --- e-smith-email-5.6.0.old/root/usr/lib/systemd/system/smtp-auth-proxy.service 1969-12-31 19:00:00.000000000 -0500
40 +++ e-smith-email-5.6.0/root/usr/lib/systemd/system/smtp-auth-proxy.service 2020-12-11 09:31:29.447000000 -0500
41 @@ -0,0 +1,12 @@
42 +[Unit]
43 +Description=Koozali SME Server SMTP auth proxy
44 +After=network.target remote-fs.target
45 +
46 +[Service]
47 +Type=simple
48 +ExecStartPre=/sbin/e-smith/service-status smtp-auth-proxy
49 +ExecStart=/usr/local/sbin/smtp-auth-proxy.pl
50 +
51 +[Install]
52 +WantedBy=sme-server.target
53 +

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