Bug 880148

Summary: /etc/logrotate.d/thttpd should use systemctl
Product: [Fedora] Fedora Reporter: Marcos Mello <marcosfrm>
Component: thttpdAssignee: Matthias Saou <matthias>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: aschorr, matthias
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1045729 (view as bug list) Environment:
Last Closed: 2014-02-03 16:21:17 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 Marcos Mello 2012-11-26 11:08:38 UTC
thttpd-2.25b-28.fc18.x86_64

$ cat /etc/logrotate.d/thttpd
/var/log/thttpd.log {
    compress
    missingok
    notifempty
    postrotate
        # For some reason, the documented -HUP doesn't work
        /sbin/service thttpd condrestart >/dev/null
    endscript
}

thttpd has a native systemd unit file. Needs

systemctl condrestart thttpd.service

there.

Comment 1 Andrew J. Schorr 2013-10-20 15:52:14 UTC
I am seeing the same problem in Fedora 19.  Please patch this to use systemctl or at least redirect stderr from the service command to /dev/null.   Otherwise,
one receives email messages every week complaining about this:

Date: Sun, 20 Oct 2013 03:40:09 -0400 (EDT)
From: Anacron <root>
To: root
Subject: Anacron job 'cron.daily' on ti24

/etc/cron.daily/logrotate:

Redirecting to /bin/systemctl condrestart  thttpd.service

Comment 2 Fedora End Of Life 2013-12-21 09:30:28 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Marcos Mello 2014-02-03 16:21:17 UTC

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