Bug 973817 - openshift-origin-node-proxy logrotate doesn't work with systemd
Summary: openshift-origin-node-proxy logrotate doesn't work with systemd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Troy Dawson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-12 20:20 UTC by Troy Dawson
Modified: 2015-05-14 23:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-09 21:08:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.