Bug 918759

Summary: Thumbslug should be configured to run under systemd
Product: Red Hat Enterprise Linux 7 Reporter: Alex Wood <awood>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED WONTFIX QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bkearney, jgalipea, jsefler
Target Milestone: rc   
Target Release: 7.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-29 19:39:52 UTC Type: Bug
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: 1005618    

Description Alex Wood 2013-03-06 19:50:52 UTC
Thumbslug is currently configured to run under SysVInit.  In RHEL 7, however, things are switching to systemd.  Thumbslug needs to be set up to run under systemd.  Additionally, it must continue running under SysVInit for older installations.

Something like the following in the spec file should allow for the last requirement:

+# Prefer systemd over sysv on Fedora 17+ and RHEL 7+
+%define use_systemd (0%{?fedora} && 0%{?fedora} >= 17) || (0%{?rhel} && 0%{?rhel} >= 7)

[...]

%if %use_systemd
  Do systemd related things
%else
  Do SysVInit things.
%endif

Comment 3 Bryan Kearney 2014-07-30 19:23:47 UTC
Acking 7.1