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

Annotation 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.2 - (hide annotations) (download)
Fri Dec 11 14:53:15 2020 UTC (3 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-email-5_6_0-16_el7_sme, e-smith-email-5_6_0-15_el7_sme, e-smith-email-5_6_0-10_el7_sme, e-smith-email-5_6_0-17_el7_sme, e-smith-email-5_6_0-12_el7_sme, e-smith-email-5_6_0-11_el7_sme, e-smith-email-5_6_0-8_el7_sme, e-smith-email-5_6_0-18_el7_sme, e-smith-email-5_6_0-19_el7_sme, e-smith-email-5_6_0-14_el7_sme, e-smith-email-5_6_0-9_el7_sme, e-smith-email-5_6_0-13_el7_sme, HEAD
Changes since 1.1: +2 -3 lines
* 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 jpp 1.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 jpp 1.2 @@ -71,7 +71,6 @@
5 jpp 1.1 #--------------------------------------------------
6     $event = "email-update";
7    
8     -safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");
9     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smtp-auth-proxy");
10    
11     #--------------------------------------------------
12 jpp 1.2 @@ -116,15 +116,19 @@
13 jpp 1.1 $event = "ip-change";
14    
15     #--------------------------------------------------
16     +# actions for e-smith-email-update event:
17     +#--------------------------------------------------
18     +$event = "e-smith-email-update";
19     +# systemd-specific action mandatory for this package-update event
20     +event_link("systemd-reload", $event, "89");
21     +event_link("systemd-default", $event, "88");
22     +safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/smtp-auth-proxy");
23     +
24     +#--------------------------------------------------
25     # actions for pseudonym-{create,delete,modify}
26     #--------------------------------------------------
27     foreach $event ( qw(pseudonym-create pseudonym-modify pseudonym-delete) )
28     {
29     }
30    
31     -safe_symlink("daemontools", "root/etc/rc.d/init.d/smtp-auth-proxy");
32     -service_link_enhanced("smtp-auth-proxy", "S75", "7");
33     -service_link_enhanced("smtp-auth-proxy", "K50", "6");
34     -service_link_enhanced("smtp-auth-proxy", "K50", "0");
35     -service_link_enhanced("smtp-auth-proxy", "K50", "1");
36    
37     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
38     --- e-smith-email-5.6.0.old/root/usr/lib/systemd/system/smtp-auth-proxy.service 1969-12-31 19:00:00.000000000 -0500
39     +++ e-smith-email-5.6.0/root/usr/lib/systemd/system/smtp-auth-proxy.service 2020-12-11 09:31:29.447000000 -0500
40     @@ -0,0 +1,12 @@
41     +[Unit]
42     +Description=Koozali SME Server SMTP auth proxy
43     +After=network.target remote-fs.target
44     +
45     +[Service]
46     +Type=simple
47     +ExecStartPre=/sbin/e-smith/service-status smtp-auth-proxy
48     +ExecStart=/usr/local/sbin/smtp-auth-proxy.pl
49     +
50     +[Install]
51     +WantedBy=sme-server.target
52     +

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