/[smeserver]/rpms/e-smith-qmail/sme10/e-smith-qmail-2.6.0-bz11105-systemd.patch
ViewVC logotype

Annotation of /rpms/e-smith-qmail/sme10/e-smith-qmail-2.6.0-bz11105-systemd.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Nov 16 16:14:24 2020 UTC (4 years ago) by michel
Branch: MAIN
CVS Tags: e-smith-qmail-2_6_0-6_el7_sme, e-smith-qmail-2_6_0-5_el7_sme, e-smith-qmail-2_6_0-7_el7_sme
* Sat Nov 14 2020 Michel Begue <mab974@gmail.com> 2.6.0-5.sme
- Move qmail service to systemd [SME: 11105]
- Create e-smith-qmail-update event [SME: 11152]

1 michel 1.1 diff -urN e-smith-qmail-2.6.0.old/createlinks e-smith-qmail-2.6.0/createlinks
2     --- e-smith-qmail-2.6.0.old/createlinks 2008-10-07 21:37:10.000000000 +0400
3     +++ e-smith-qmail-2.6.0/createlinks 2020-11-14 10:14:37.695951562 +0400
4     @@ -38,6 +38,7 @@
5     host-delete
6     host-modify
7     post-upgrade
8     + e-smith-qmail-update
9     ));
10     }
11    
12     @@ -57,6 +58,7 @@
13     host-delete
14     host-modify
15     post-upgrade
16     + e-smith-qmail-update
17     ));
18     }
19    
20     @@ -188,13 +190,20 @@
21     event_link("qmail-ipup", $event, "20");
22    
23     #--------------------------------------------------
24     -# actions for ip-up event:
25     +# actions for ip-change event:
26     #--------------------------------------------------
27     $event = "ip-change";
28    
29     safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/qmail");
30    
31     #--------------------------------------------------
32     +# actions for e-smith-qmail-update event:
33     +#--------------------------------------------------
34     +$event = "e-smith-qmail-update";
35     +
36     +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/qmail");
37     +
38     +#--------------------------------------------------
39     # actions for pseudonym-{create,delete,modify}
40     #--------------------------------------------------
41     foreach $event ( qw(pseudonym-create pseudonym-modify pseudonym-delete
42     diff -urN e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system/qmail.service e-smith-qmail-2.6.0/root/usr/lib/systemd/system/qmail.service
43     --- e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system/qmail.service 1970-01-01 04:00:00.000000000 +0400
44     +++ e-smith-qmail-2.6.0/root/usr/lib/systemd/system/qmail.service 2020-11-14 10:51:18.636587154 +0400
45     @@ -0,0 +1,14 @@
46     +[Unit]
47     +Description=qmail, message transfer agent
48     +After=network.target
49     +
50     +[Service]
51     +Type=oneshot
52     +ExecStartPre=/sbin/e-smith/service-status qmail
53     +ExecStart=/usr/bin/sv u /service/qmail
54     +ExecStop=/usr/bin/sv stop /service/qmail
55     +ExecReload=/usr/bin/sv t /service/qmail
56     +RemainAfterExit=yes
57     +
58     +[Install]
59     +WantedBy=sme-server.target
60     diff -urN e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset e-smith-qmail-2.6.0/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset
61     --- e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset 1970-01-01 04:00:00.000000000 +0400
62     +++ e-smith-qmail-2.6.0/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset 2020-11-13 21:30:43.385488184 +0400
63     @@ -0,0 +1 @@
64     +enable qmail.service

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