/[smecontribs]/rpms/smeserver-isoqlog/contribs10/smeserver-isoqlog-2.2.1-systemd.patch
ViewVC logotype

Annotation of /rpms/smeserver-isoqlog/contribs10/smeserver-isoqlog-2.2.1-systemd.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Jul 29 06:24:26 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
* Fri Jul 29 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.2.1-5.sme
- add to core backup [SME: 12010]
- use httpd 2.4 access syntax [SME: 12049]
- systemd enabled [SME: 11061]
- update event [SME: 11061]
- update httpd.conf needed modules [SME: 11061]

1 jpp 1.1 diff -Nur --no-dereference smeserver-isoqlog-2.2.1.old/createlinks smeserver-isoqlog-2.2.1/createlinks
2     --- smeserver-isoqlog-2.2.1.old/createlinks 2022-07-29 01:45:37.412000000 -0400
3     +++ smeserver-isoqlog-2.2.1/createlinks 2022-07-29 02:20:17.939000000 -0400
4     @@ -6,14 +6,6 @@
5    
6     # Start and stop links
7    
8     -service_link_enhanced("httpd-isoqlog", "S86", "7");
9     -service_link_enhanced("httpd-isoqlog", "K15", "6");
10     -service_link_enhanced("httpd-isoqlog", "K15", "0");
11     -service_link_enhanced("httpd-isoqlog", "K15", "1");
12     -
13     -safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/httpd-isoqlog');
14     -safe_symlink("/var/service/httpd-isoqlog" , 'root/service/httpd-isoqlog');
15     -
16    
17     # Events links
18     templates2events("/etc/httpd/isoqlog-conf/httpd.conf", qw(bootstrap-console-save conf-userpanel domain-modify domain-create));
19     @@ -24,11 +16,22 @@
20     safe_symlink("sigusr1", "root/etc/e-smith/events/domain-modify/services2adjust/httpd-isoqlog");
21     safe_symlink("sigusr1", "root/etc/e-smith/events/logrotate/services2adjust/httpd-isoqlog");
22    
23     -# Create needed empty files
24     -safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/issoqlog_access_log");
25     -safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/isoqlog_error_log");
26     -safe_touch("root/var/service/httpd-isoqlog/down");
27    
28     +my $event="smeserver-isoqlog-update";
29     +safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/httpd-isoqlog");
30     +event_services($event, qw(
31     + httpd-isoqlog reload-or-restart
32     + httpd-e-smith reload-or-restart
33     +));
34     +templates2events("/etc/httpd/conf/httpd.conf",$event);
35     +templates2events("/etc/httpd/isoqlog-conf/httpd.conf",$event);
36     +templates2events("/etc/isoqlog.domains",$event);
37     +templates2events("/etc/isoqlog.conf",$event);
38     +
39     +event_actions($event, qw(
40     + systemd-default 88
41     + systemd-reload 89
42     +));
43    
44     #--------------------------------------------------
45     # functions for manager panel
46     diff -Nur --no-dereference smeserver-isoqlog-2.2.1.old/root/etc/e-smith/templates/etc/httpd/isoqlog-conf/httpd.conf/20Modules smeserver-isoqlog-2.2.1/root/etc/e-smith/templates/etc/httpd/isoqlog-conf/httpd.conf/20Modules
47     --- smeserver-isoqlog-2.2.1.old/root/etc/e-smith/templates/etc/httpd/isoqlog-conf/httpd.conf/20Modules 2012-08-21 03:28:16.000000000 -0400
48     +++ smeserver-isoqlog-2.2.1/root/etc/e-smith/templates/etc/httpd/isoqlog-conf/httpd.conf/20Modules 2022-07-29 02:17:15.378000000 -0400
49     @@ -48,6 +48,11 @@
50     setenvif
51     ssl
52     cgi
53     + mpm_prefork
54     + unixd
55     + authn_core
56     + authz_core
57     + systemd
58     ))
59     {
60     next unless -f "/usr/lib/httpd/modules/mod_${_}.so" ||
61     @@ -110,7 +115,6 @@
62     AddIconByType (IMG,/icons/image2.gif) image/*
63     AddIconByType (SND,/icons/sound2.gif) audio/*
64     AddIconByType (VID,/icons/movie.gif) video/*
65     -DefaultType text/plain
66     TypesConfig /etc/mime.types
67    
68     AddEncoding x-compress Z
69     diff -Nur --no-dereference smeserver-isoqlog-2.2.1.old/root/usr/lib/systemd/system/httpd-isoqlog.service smeserver-isoqlog-2.2.1/root/usr/lib/systemd/system/httpd-isoqlog.service
70     --- smeserver-isoqlog-2.2.1.old/root/usr/lib/systemd/system/httpd-isoqlog.service 1969-12-31 19:00:00.000000000 -0500
71     +++ smeserver-isoqlog-2.2.1/root/usr/lib/systemd/system/httpd-isoqlog.service 2022-07-29 02:17:15.157000000 -0400
72     @@ -0,0 +1,25 @@
73     +[Unit]
74     +Description=httpd-isoqlog The Koozali SME Server isoqlog web service
75     +After=network.target remote-fs.target
76     +Documentation=man:httpd(8)
77     +Documentation=man:apachectl(8)
78     +
79     +[Service]
80     +Type=notify
81     +EnvironmentFile=/etc/sysconfig/httpd
82     +ExecStartPre=/sbin/e-smith/service-status httpd-isoqlog
83     +ExecStartPre=/sbin/e-smith/expand-template /etc/httpd/isoqlog-conf/httpd.conf
84     +ExecStart=/usr/sbin/httpd -f /etc/httpd/isoqlog-conf/httpd.conf -DFOREGROUND
85     +ExecReload=/usr/sbin/httpd -f /etc/httpd/isoqlog-conf/httpd.conf -k graceful
86     +ExecStop=/bin/kill -WINCH ${MAINPID}
87     +# We want systemd to give httpd some time to finish gracefully, but still want
88     +# it to kill httpd after TimeoutStopSec if something went wrong during the
89     +# graceful stop. Normally, Systemd sends SIGTERM signal right after the
90     +# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
91     +# httpd time to finish.
92     +KillSignal=SIGCONT
93     +PrivateTmp=true
94     +
95     +[Install]
96     +WantedBy=sme-server.target
97     +

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