Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 675591 Details for
Bug 893593
yum-cron should use systemd
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to modify spec file
yum-cron-systemd-spec.patch (text/plain), 2.92 KB, created by
jcpunk
on 2013-01-09 14:45:47 UTC
(
hide
)
Description:
patch to modify spec file
Filename:
MIME Type:
Creator:
jcpunk
Created:
2013-01-09 14:45:47 UTC
Size:
2.92 KB
patch
obsolete
>--- yum-cron.spec 2012-11-23 04:14:03.000000000 -0600 >+++ yum-cron.spec.systemd 2013-01-09 08:42:22.593783332 -0600 >@@ -10,12 +10,10 @@ Source0: %{name}-%{version}.tar.gz > License: GPLv2 > Group: System Environment/Base > BuildArch: noarch >-Requires: yum >= 3.0 dailyjobs crontabs yum-downloadonly findutils >-Requires(post): /sbin/chkconfig >-Requires(post): /sbin/service >-Requires(preun): /sbin/chkconfig >-Requires(preun): /sbin/service >-Requires(postun): /sbin/service >+Requires: yum >= 3.0 dailyjobs crontabs yum-downloadonly findutils coreutils >+Requires(post): systemd-units >+Requires(preun): systemd-units >+Requires(postun): systemd-units > BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) > > %description >@@ -32,7 +30,7 @@ rather than the newer yum-updatesd daemo > %install > rm -rf $RPM_BUILD_ROOT > install -D -m 755 0yum.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/0yum.cron >-install -D -m 755 yum-cron $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/yum-cron >+install -D -m 644 yum-cron.service $RPM_BUILD_ROOT/%{_unitdir}/yum-cron.service > install -D -m 644 yum-daily.yum $RPM_BUILD_ROOT/%{_sysconfdir}/yum/yum-daily.yum > install -D -m 644 yum-weekly.yum $RPM_BUILD_ROOT/%{_sysconfdir}/yum/yum-weekly.yum > install -D -m 644 yum-cron.sysconf $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/yum-cron >@@ -41,53 +39,21 @@ install -D -m 644 yum-cron.sysconf $RPM_ > rm -rf $RPM_BUILD_ROOT > > %post >-# Make sure chkconfig knows about the service >-/sbin/chkconfig --add yum-cron >-# if an upgrade: >-if [ "$1" -ge "1" ]; then >-# if there's a /etc/rc.d/init.d/yum file left, assume that there was an >-# older instance of yum-cron which used this naming convention. Clean >-# it up, do a conditional restart >- if [ -f /etc/init.d/yum ]; then >-# was it on? >- /sbin/chkconfig yum >- RETVAL=$? >- if [ $RETVAL = 0 ]; then >-# if it was, stop it, then turn on new yum-cron >- /sbin/service yum stop 1> /dev/null 2>&1 >- /sbin/service yum-cron start 1> /dev/null 2>&1 >- /sbin/chkconfig yum-cron on >- fi >-# remove it from the service list >- /sbin/chkconfig --del yum >- fi >-fi >-exit 0 >+%systemd_post yum-cron.service > > %preun >-# if this will be a complete removeal of yum-cron rather than an upgrade, >-# remove the service from chkconfig control >-if [ $1 = 0 ]; then >- /sbin/chkconfig --del yum-cron >- /sbin/service yum-cron stop 1> /dev/null 2>&1 >-fi >-exit 0 >+%systemd_preun yum-cron.service > > %postun >-# If there's a yum-cron package left after uninstalling one, do a >-# conditional restart of the service >-if [ "$1" -ge "1" ]; then >- /sbin/service yum-cron condrestart 1> /dev/null 2>&1 >-fi >-exit 0 >+%systemd_postun_with_restart yum-cron.service > > %files > %defattr(-,root,root) > %doc COPYING README >+%{_unitdir}/yum-cron.service > %{_sysconfdir}/cron.daily/0yum.cron > %config(noreplace) %{_sysconfdir}/yum/yum-daily.yum > %config(noreplace) %{_sysconfdir}/yum/yum-weekly.yum >-%{_sysconfdir}/rc.d/init.d/yum-cron > %config(noreplace) %{_sysconfdir}/sysconfig/yum-cron > > %changelog
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 893593
: 675591 |
675592
|
777938
|
777939
|
777940
|
777941
|
788639
|
788641