Bug 973817

Summary: openshift-origin-node-proxy logrotate doesn't work with systemd
Product: OKD Reporter: Troy Dawson <tdawson>
Component: ContainersAssignee: Troy Dawson <tdawson>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.x   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-09 21:08:24 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:

Description Troy Dawson 2013-06-12 20:20:05 UTC
Description of problem:
In the postrotate section of /etc/logrotate.d/openshift-node-web-proxy it has

/sbin/service openshift-node-web-proxy restart > /dev/null 2>/dev/null || true

This doesn't work on systems using systemd (Fedora 17+) It should be

/bin/systemctl restart openshift-node-web-proxy.service > /dev/null 2>/dev/null || true

Version-Release number of selected component (if applicable):
openshift-origin-node-proxy-0.9.2

How reproducible:
100%

Steps to Reproduce:
1. Install openshift-origin-node-proxy
2. Wait for the logs to rotate
3.

Actual results:
The service doesn't get restarted after the logrotate

Expected results:
The service to get restarted after the logs are rotated.

Additional info:

Comment 1 Troy Dawson 2013-09-09 21:08:24 UTC
Fixed with this pull request
https://github.com/openshift/origin-server/pull/3563