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 606620 Details for
Bug 851227
Introduce new systemd-rpm macros in apcupsd 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.41 KB, created by
Václav Pavlín
on 2012-08-23 14:26:58 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-08-23 14:26:58 UTC
Size:
1.41 KB
patch
obsolete
>diff --git a/apcupsd.spec b/apcupsd.spec >index d4f16a8..3eb53f8 100644 >--- a/apcupsd.spec >+++ b/apcupsd.spec >@@ -1,6 +1,6 @@ > Name: apcupsd > Version: 3.14.10 >-Release: 5%{?dist} >+Release: 6%{?dist} > Summary: APC UPS Power Control Daemon for Linux > > Group: System Environment/Daemons >@@ -176,8 +176,7 @@ rm -rf $RPM_BUILD_ROOT > > %post > if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >+ %systemd_post apcupsd.service > else > # update (migration) sysv init -> systemd > # trigger won't work if we change NEVR in Fn-1 >@@ -196,21 +195,16 @@ else > fi > > %preun >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable apcupsd.service >/dev/null 2>&1 || : >- /bin/systemctl stop apcupsd.service >/dev/null 2>&1 || : >-fi >+%systemd_preun apcupsd.service > > %postun >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart apcupsd.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart apcupsd.service > > > %changelog >+* Thu Aug 23 2012 Václav PavlÃn <vpavlin@redhat.com> - 3.14.10-6 >+- Scriptlets replaced with new systemd macros (#851227) >+ > * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.10-5 > - 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 851227
: 606620