Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306483 - media-tv/mythtv-0.22_p23069: logrotate_script error
Summary: media-tv/mythtv-0.22_p23069: logrotate_script error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-23 07:32 UTC by stardub
Modified: 2010-06-13 07:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stardub 2010-02-23 07:32:04 UTC
The mythtv logrotate_script doesn't send a SIGHUP to the mythbackend.

Reproducible: Always

Steps to Reproduce:
1
2.
3.

Actual Results:  
The postrotate-command outputs: logrotate_script: line 1: [: missing `]'


There's a missing space between "/var/run/mythbackend.pid" and ']':

--- /etc/logrotate.d/mythtv.orig	2010-02-23 08:06:39.331680715 +0100
+++ /etc/logrotate.d/mythtv	2010-02-23 08:06:09.137415465 +0100
@@ -10,6 +10,6 @@
 sharedscripts
 missingok
 postrotate
-[ -f "/var/run/mythbackend.pid"] && /bin/kill -HUP `cat /var/run/mythbackend.pid`
+[ -f "/var/run/mythbackend.pid" ] && /bin/kill -HUP `cat /var/run/mythbackend.pid`
 endscript
 }
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2010-06-13 07:20:51 UTC
Fixed. Sorry it took so long for me to notice this.