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 609901 Details for
Bug 850070
Introduce new systemd-rpm macros in cronie spec file
[?]
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 replaces scriptlets with new systemd macros
new-systemd-macros.patch (text/plain), 1.73 KB, created by
Václav Pavlín
on 2012-09-05 08:28:57 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-09-05 08:28:57 UTC
Size:
1.73 KB
patch
obsolete
>diff --git a/cronie.spec b/cronie.spec >index 1134c9c..e7985b4 100644 >--- a/cronie.spec >+++ b/cronie.spec >@@ -6,7 +6,7 @@ > Summary: Cron daemon for executing programs at set times > Name: cronie > Version: 1.4.8 >-Release: 12%{?dist} >+Release: 13%{?dist} > License: MIT and BSD and ISC and GPLv2 > Group: System Environment/Base > URL: https://fedorahosted.org/cronie >@@ -141,11 +141,7 @@ install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond > > %post > # run after an installation >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >- /bin/systemctl enable crond.service >/dev/null 2>&1 || : >-fi >+%systemd_post crond.service > > %post anacron > [ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily >@@ -154,17 +150,11 @@ fi > > %preun > # run before a package is removed >-if [ $1 -eq 0 ]; then >- /bin/systemctl --no-reload disable crond.service >/dev/null 2>&1 || : >- /bin/systemctl stop crond.service > /dev/null 2>&1 || : >-fi >+%systemd_preun crond.service > > %postun > # run after a package is removed >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ]; then >- /bin/systemctl try-restart crond.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart crond.service > > %triggerun -- cronie-anacron < 1.4.1 > # empty /etc/crontab in case there are only old regular jobs >@@ -232,6 +222,9 @@ exit 0 > %attr(0755,root,root) %{_initrddir}/crond > > %changelog >+* Wed Sep 05 2012 Václav PavlÃn <vpavlin@redhat.com> - 1.4.8-13 >+- Scriptlets replaced with new systemd macros (#850070) >+ > * Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-12 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild >
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 850070
: 609901