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 684945 Details for
Bug 878826
[rfe] dnf could use systemd timer unit rather than crontabs
[?]
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]
Jochen Schmitt's patch for the RFE
0001-Migrating-to-systemd-timers.patch (text/plain), 3.40 KB, created by
Ales Kozumplik
on 2013-01-22 08:44:57 UTC
(
hide
)
Description:
Jochen Schmitt's patch for the RFE
Filename:
MIME Type:
Creator:
Ales Kozumplik
Created:
2013-01-22 08:44:57 UTC
Size:
3.40 KB
patch
obsolete
>From b7165917d40de303ea3ad08db304462659587640 Mon Sep 17 00:00:00 2001 >From: Jochen Schmitt <Jochen@herr-schmitt.de> >Date: Mon, 21 Jan 2013 15:53:43 +0100 >Subject: [PATCH] Migrating to systemd timers > >--- > dnf-makecache.service | 10 ++++++++++ > dnf-makecache.timer | 9 +++++++++ > dnf.spec | 30 +++++++++++++++++++++++++++--- > 3 files changed, 46 insertions(+), 3 deletions(-) > create mode 100644 dnf-makecache.service > create mode 100644 dnf-makecache.timer > >diff --git a/dnf-makecache.service b/dnf-makecache.service >new file mode 100644 >index 0000000..4818d74 >--- /dev/null >+++ b/dnf-makecache.service >@@ -0,0 +1,10 @@ >+[Unit] >+Description=Update DNF Metadata Cache >+After=syslog.target network.target >+ >+[Service] >+Type=oneshot >+ExecStart=/usr/bin/dnf makecache >+ >+[Install] >+WantedBy=multi-user.target >\ No newline at end of file >diff --git a/dnf-makecache.timer b/dnf-makecache.timer >new file mode 100644 >index 0000000..3948a49 >--- /dev/null >+++ b/dnf-makecache.timer >@@ -0,0 +1,9 @@ >+[Unit] >+Description=Update DNF Metadata Cache >+After=syslog.target network.target >+ >+[Service] >+OnUnitAtSec=1h >+ >+[Install] >+WantedBy=multi-user.target >\ No newline at end of file >diff --git a/dnf.spec b/dnf.spec >index 209f36f..bcba83b 100644 >--- a/dnf.spec >+++ b/dnf.spec >@@ -4,13 +4,16 @@ > > Name: dnf > Version: 0.2.20 >-Release: 1.git%{gitrev}%{?dist} >+Release: 2.git%{gitrev}%{?dist} > Summary: Package manager forked from Yum, using libsolv as a dependency resolver > Group: System Environment/Base > # For a breakdown of the licensing, see PACKAGE-LICENSING > License: GPLv2+ and GPLv2 and GPL > URL: https://github.com/akozumpl/dnf > Source0: http://akozumpl.fedorapeople.org/dnf-%{gitrev}.tar.xz >+Source1: dnf-makecache.service >+Source2: dnf-makecache.timer >+Patch1: dnf-cron.patch > BuildArch: noarch > BuildRequires: cmake > BuildRequires: python2 >@@ -20,14 +23,18 @@ BuildRequires: rpm-python > BuildRequires: urlgrabber > BuildRequires: python-hawkey = %{hawkey_version} > Requires: python-hawkey = %{hawkey_version} >-Requires: crontabs >+Requires: systemd > Requires: libreport-filesystem >+Requires(post): systemd >+Requires(preun): systemd >+Requires(postun): systemd > > %description > Package manager forked from Yum, using libsolv as a dependency resolver. > > %prep > %setup -q -n dnf >+%patch1 -p1 -b .cron > > %build > %cmake . >@@ -38,20 +45,37 @@ make doc-man > rm -rf $RPM_BUILD_ROOT > make install DESTDIR=$RPM_BUILD_ROOT > >+# Copy systemd.timer files >+mkdir -p $RPM_BUILD_ROOT/%{_unitdir} >+install -p %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir} >+install -p %{SOURCE2} $RPM_BUILD_ROOT/%{_unitdir} >+ > %check > make ARGS="-V" test > >+%post >+%systemd_post dnf-makecache.service >+ >+%preun >+%systemd_preun dnf-makechache.service >+ >+%postun >+%systemd_postun_with_restart dnf-makecache.service >+ > %files > %doc AUTHORS README.md COPYING PACKAGE-LICENSING > %{_bindir}/dnf > %{python_sitelib}/dnf/ >+%{_unitdir}/dnf-makecache.* > %dir %{confdir} > %config(noreplace) %{confdir}/dnf.conf >-%{_sysconfdir}/cron.hourly/dnf-makecache.cron > %{_sysconfdir}/libreport/events.d/collect_dnf.conf > %{_mandir}/man8/dnf.8.gz > > %changelog >+* Mon Jan 21 2013 Jochen Schmitt <Jochen herr-schmitt de> - 0.2.20-2.gitdec970f%{?dist} >+- Migrating to systemd timers >+ > * Fri Jan 18 2013 AleÅ¡ KozumplÃk <ales@redhat.com> - 0.2.20-1.gitdec970f > - fix '--exclude' command-line option (related RhBug:871892) > - Introduce --best switch to force trying latest packages in transactions ( RhBug:882211) >-- >1.8.1 >
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 878826
: 684945