Bug 785840

Summary: Modify cumin-database to call systemctl directly instead of redirect through service
Product: [Fedora] Fedora Reporter: Trevor McKay <tmckay>
Component: cuminAssignee: Trevor McKay <tmckay>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: croberts, matt, tmckay
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 785837
: 785863 (view as bug list) Environment:
Last Closed: 2012-01-31 20:00:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 785825, 785837    
Bug Blocks: 785863    

Description Trevor McKay 2012-01-30 18:34:44 UTC
+++ This bug was initially created as a clone of Bug #785837 +++

+++ This bug was initially created as a clone of Bug #785825 +++

Description of problem:

The cumin-databse script has legacy calls to /sbin/service for controlling postgresql.  This causes extra "redirecting" messages to print on the screen when script operations are run.  Eliminate these by calling systemctl.

Version-Release number of selected component (if applicable):

cumin-0.1.5137-5

How reproducible:

100%


Steps to Reproduce:
1.  yum install cumin
2.  cumin-database install
3.  cumin-database stop
4.  cumin-database start
  
Actual results:

At various points in the output from the above commands, messages like this will be printed:

Redirecting to /bin/systemctl  start postgresql.service

Expected results:

These messages should not be seen.

Additional info:

This functionality will be added through conditionals in a single script that supports F15+ and RHEL 5+.  As such, it is not just a simple cut and paste operation since platforms without systemd still need to work.

Comment 1 Trevor McKay 2012-01-31 20:00:20 UTC
Marking this a duplicate of 785837 on F16.  There are separate BZs for F15, F16, and RHEL 5/6 because the commands used by the script are different in those cases and they should be tested slightly differently.  However, rawhide should be the same as F16.

*** This bug has been marked as a duplicate of bug 785837 ***