[Bug 460234] [NEW] Image story's logrotate config triggers an email every day

Loïc Minier lool at dooz.org
Sun Oct 25 07:23:54 GMT 2009


Public bug reported:

Hi

Got an email from cron this morning:
/etc/cron.daily/logrotate:                                                      
 * Restarting Image Store Proxy image-store-proxy                               
   ...done.                                                                     

This is due to /etc/logrotate.d/image-store-proxy doing:
  postrotate
  /etc/init.d/image-store-proxy force-reload
  endscript

I suggest only reloading if the proxy is running and redirecting non-error output to /dev/null like apache2 does:
        postrotate
                if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
                        /etc/init.d/apache2 reload > /dev/null
                fi
        endscript

Thanks

ProblemType: Bug
Architecture: amd64
Date: Sun Oct 25 08:19:51 2009
DistroRelease: Ubuntu 9.10
Package: python-image-store-proxy 1.0.4-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/zsh
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: image-store-proxy
Uname: Linux 2.6.31-11-generic x86_64

** Affects: image-store-proxy (Ubuntu)
     Importance: Low
     Assignee: Canonical Server Team (canonical-server)
         Status: New


** Tags: amd64 apport-bug

-- 
Image story's logrotate config triggers an email every day
https://bugs.launchpad.net/bugs/460234
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to image-store-proxy in ubuntu.



More information about the Ubuntu-server-bugs mailing list