Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 850130

Summary: Introduce new systemd-rpm macros in glusterfs spec file
Product: [Community] GlusterFS Reporter: Lukáš Nykrýn <lnykryn>
Component: buildAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: gluster-bugs, joe, jonathansteffan, matthias, silas, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:31:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 850016    
Attachments:
Description Flags
Patch adds systemctl preset call with condition for F18 and RHEL7
none
Patch adds systemctl preset call with condition for F18 and RHEL7 none

Description Lukáš Nykrýn 2012-08-21 13:38:48 UTC
Fedora 18 changes the way how to work with services in spec files. It introduces new macros - %systemd_post, %systemd_preun and %systemd_postun; which replace scriptlets from Fedora 17 and older (see https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd, https://bugzilla.redhat.com/show_bug.cgi?id=850016).

Comment 1 Václav Pavlín 2012-09-17 11:19:03 UTC
Created attachment 613631 [details]
Patch adds systemctl preset call with condition for F18 and RHEL7

This approach does not follow guidelines but it was the easiest way how to add systemd presets support and not to break design of your spec file.

Comment 2 Václav Pavlín 2012-09-17 11:27:19 UTC
Created attachment 613633 [details]
Patch adds systemctl preset call with condition for F18 and RHEL7

Sorry, I mistyped name of macro.

Comment 3 Fedora Admin XMLRPC Client 2013-01-18 15:14:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.