Bug 880148 - /etc/logrotate.d/thttpd should use systemctl
Summary: /etc/logrotate.d/thttpd should use systemctl
Keywords:
Status: CLOSED DUPLICATE of bug 1045729
Alias: None
Product: Fedora
Classification: Fedora
Component: thttpd
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Saou
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-26 11:08 UTC by Marcos Mello
Modified: 2014-02-03 16:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1045729 (view as bug list)
Environment:
Last Closed: 2014-02-03 16:21:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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