support "configtest" and "graceful" as initscripts "legacy actions"
This commit is contained in:
parent
0ab4593d9c
commit
99146f2b3c
2
action-configtest.sh
Normal file
2
action-configtest.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec /sbin/apachectl configtest "$@"
|
2
action-graceful.sh
Normal file
2
action-graceful.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec /sbin/apachectl -k graceful "$@"
|
33
httpd.spec
33
httpd.spec
@ -8,15 +8,17 @@
|
|||||||
Summary: Apache HTTP Server
|
Summary: Apache HTTP Server
|
||||||
Name: httpd
|
Name: httpd
|
||||||
Version: 2.4.2
|
Version: 2.4.2
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
URL: http://httpd.apache.org/
|
URL: http://httpd.apache.org/
|
||||||
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
||||||
Source1: index.html
|
Source1: index.html
|
||||||
Source3: httpd.logrotate
|
Source2: httpd.logrotate
|
||||||
Source5: httpd.sysconf
|
Source3: httpd.sysconf
|
||||||
Source6: httpd-ssl-pass-dialog
|
Source4: httpd-ssl-pass-dialog
|
||||||
Source7: httpd.tmpfiles
|
Source5: httpd.tmpfiles
|
||||||
Source8: httpd.service
|
Source6: httpd.service
|
||||||
|
Source7: action-graceful.sh
|
||||||
|
Source8: action-configtest.sh
|
||||||
Source10: httpd.conf
|
Source10: httpd.conf
|
||||||
Source11: 00-base.conf
|
Source11: 00-base.conf
|
||||||
Source12: 00-mpm.conf
|
Source12: 00-mpm.conf
|
||||||
@ -67,6 +69,8 @@ Requires(pre): /usr/sbin/useradd
|
|||||||
Requires(preun): systemd-units
|
Requires(preun): systemd-units
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd-units
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units
|
||||||
|
# For legacy-actions:
|
||||||
|
Requires: initscripts >= 9.39
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Apache HTTP Server is a powerful, efficient, and extensible
|
The Apache HTTP Server is a powerful, efficient, and extensible
|
||||||
@ -340,9 +344,16 @@ ln -s /run/httpd $RPM_BUILD_ROOT/etc/httpd/run
|
|||||||
ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/etc/httpd/modules
|
ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/etc/httpd/modules
|
||||||
|
|
||||||
# install http-ssl-pass-dialog
|
# install http-ssl-pass-dialog
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
|
||||||
install -m755 $RPM_SOURCE_DIR/httpd-ssl-pass-dialog \
|
install -m755 $RPM_SOURCE_DIR/httpd-ssl-pass-dialog \
|
||||||
$RPM_BUILD_ROOT/%{_libexecdir}/httpd-ssl-pass-dialog
|
$RPM_BUILD_ROOT%{_libexecdir}/httpd-ssl-pass-dialog
|
||||||
|
|
||||||
|
# Install action scripts
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/initscripts/legacy-actions/httpd
|
||||||
|
for f in graceful configtest; do
|
||||||
|
install -p -m 755 $RPM_SOURCE_DIR/action-${f}.sh \
|
||||||
|
$RPM_BUILD_ROOT%{_libexecdir}/initscripts/legacy-actions/httpd/${f}
|
||||||
|
done
|
||||||
|
|
||||||
# Install logrotate config
|
# Install logrotate config
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
||||||
@ -487,6 +498,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) %{_sysconfdir}/sysconfig/httpd
|
%config(noreplace) %{_sysconfdir}/sysconfig/httpd
|
||||||
%{_prefix}/lib/tmpfiles.d/httpd.conf
|
%{_prefix}/lib/tmpfiles.d/httpd.conf
|
||||||
|
|
||||||
|
%dir %{_libexecdir}/initscripts/legacy-actions/httpd
|
||||||
|
%{_libexecdir}/initscripts/legacy-actions/httpd/*
|
||||||
|
|
||||||
%{_sbindir}/ht*
|
%{_sbindir}/ht*
|
||||||
%{_sbindir}/fcgistarter
|
%{_sbindir}/fcgistarter
|
||||||
%{_sbindir}/apachectl
|
%{_sbindir}/apachectl
|
||||||
@ -567,6 +581,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_sysconfdir}/rpm/macros.httpd
|
%{_sysconfdir}/rpm/macros.httpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 2 2012 Joe Orton <jorton@redhat.com> - 2.4.2-19
|
||||||
|
- support "configtest" and "graceful" as initscripts "legacy actions"
|
||||||
|
|
||||||
* Fri Jun 8 2012 Joe Orton <jorton@redhat.com> - 2.4.2-18
|
* Fri Jun 8 2012 Joe Orton <jorton@redhat.com> - 2.4.2-18
|
||||||
- avoid use of "core" GIF for a "core" directory (#168776)
|
- avoid use of "core" GIF for a "core" directory (#168776)
|
||||||
- drop use of "syslog.target" in systemd unit file
|
- drop use of "syslog.target" in systemd unit file
|
||||||
|
Loading…
Reference in New Issue
Block a user