Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 306483

Summary: media-tv/mythtv-0.22_p23069: logrotate_script error
Product: Gentoo Linux Reporter: stardub <stardub>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED FIXED    
Severity: normal CC: media-tv
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.