Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 610069 Details for
Bug 850107
Introduce new systemd-rpm macros in fence-virt spec file
Home
New
Search
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.rh90 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.59 KB, created by
Václav Pavlín
on 2012-09-05 14:07:07 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-09-05 14:07:07 UTC
Size:
1.59 KB
patch
obsolete
>diff --git a/fence-virt.spec b/fence-virt.spec >index f199e63..b7ac7e1 100644 >--- a/fence-virt.spec >+++ b/fence-virt.spec >@@ -1,6 +1,6 @@ > Name: fence-virt > Version: 0.3.0 >-Release: 5%{?dist} >+Release: 6%{?dist} > Summary: A pluggable fencing framework for virtual machines > Group: System Environment/Base > License: GPLv2+ >@@ -116,26 +116,15 @@ rm -rf %{buildroot} > %post > ccs_update_schema > /dev/null 2>&1 ||: > # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >-fi >+%systemd_post fence_virtd.service > > %preun > # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable fence_virtd.service &> /dev/null || : >- /bin/systemctl stop fence_virtd.service &> /dev/null || : >-fi >+%systemd_preun fence_virtd.service > > %postun > # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd >-/bin/systemctl daemon-reload &> /dev/null || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart fence_virtd.service &> /dev/null || : >-fi >+%systemd_postun_with_restart fence_virtd.service > > > %triggerun -- fence_virtd < 0.3.0-1 >@@ -173,6 +162,9 @@ fi > > > %changelog >+* Wed Sep 05 2012 Václav PavlÃn <vpavlin@redhat.com> - 0.3.0-6 >+- Scriptlets replaced with new systemd macros (#850107) >+ > * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-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 850107
: 610069