diff options
author | CoprDistGit <infra@openeuler.org> | 2024-02-02 12:03:31 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-02-02 12:03:31 +0000 |
commit | a12b5db2a95667c9a8affb404d5b5684cad488e4 (patch) | |
tree | 1114887c887a02562e246afc80785b03779f5ce3 /backport-httpd-2.4.3-apctl-systemd.patch | |
parent | 234812b47987978dfc84e99bfdca4f5f4d6fbfa9 (diff) |
automatic import of httpd
Diffstat (limited to 'backport-httpd-2.4.3-apctl-systemd.patch')
-rw-r--r-- | backport-httpd-2.4.3-apctl-systemd.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/backport-httpd-2.4.3-apctl-systemd.patch b/backport-httpd-2.4.3-apctl-systemd.patch new file mode 100644 index 0000000..c6bf5da --- /dev/null +++ b/backport-httpd-2.4.3-apctl-systemd.patch @@ -0,0 +1,51 @@ + +Make apachectl run via systemctl. + +Note: "apachectl graceful" is documented to start httpd if not running. + +Upstream-Status: vendor specific patch + +--- httpd-2.4.18/support/apachectl.in.apctlsystemd ++++ httpd-2.4.18/support/apachectl.in +@@ -100,9 +100,28 @@ fi + ERROR=$? + } + ++if [ "x$2" != "x" ] ; then ++ echo Passing arguments to httpd using apachectl is no longer supported. ++ echo You can only start/stop/restart httpd using this script. ++ echo If you want to pass extra arguments to httpd, edit the ++ echo /etc/sysconfig/httpd config file. ++fi ++ + case $ACMD in +-start|stop|restart|graceful|graceful-stop) +- $HTTPD $OPTIONS -k $ARGV ++start|stop|restart|status) ++ /usr/bin/systemctl $ACMD httpd.service ++ ERROR=$? ++ ;; ++graceful) ++ if /usr/bin/systemctl -q is-active httpd.service; then ++ /usr/bin/systemctl reload httpd.service ++ else ++ /usr/bin/systemctl start httpd.service ++ fi ++ ERROR=$? ++ ;; ++graceful-stop) ++ /usr/bin/systemctl stop httpd.service + ERROR=$? + ;; + startssl|sslstart|start-SSL) +@@ -114,10 +133,6 @@ startssl|sslstart|start-SSL) + configtest) + testconfig + ;; +-status) +- checklynx +- $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' +- ;; + fullstatus) + checklynx + $LYNX $STATUSURL |