← Back to team overview

orchestra team mailing list archive

[Bug 919913] Re: cron.d/remote_syslog_compress should skip .bz2 files

 

** Changed in: orchestra (Ubuntu)
       Status: New => Confirmed

** Changed in: orchestra (Ubuntu)
     Assignee: Canonical Server Team (canonical-server) => Marc Cluet (lynxman)

-- 
You received this bug notification because you are a member of
orchestra, which is subscribed to orchestra in Ubuntu.
https://bugs.launchpad.net/bugs/919913

Title:
  cron.d/remote_syslog_compress should skip .bz2 files

Status in “orchestra” package in Ubuntu:
  Confirmed

Bug description:
  The cronjob remote_syslog_compress spams root with emails like this:

  Subject: Cron <root@foo> find /var/log/orchestra/ -type f -mtime +2
  -exec bzip2 '{}' \;

  bzip2: Input file /var/log/orchestra/rsyslog/2011/10/23/bar/cron.bz2 already has .bz2 suffix.
  bzip2: Input file /var/log/orchestra/rsyslog/2011/10/23/bar/messages.bz2 already has .bz2 suffix.
  bzip2: Input file /var/log/orchestra/rsyslog/2011/10/23/bar/maillog.bz2 already has .bz2 suffix.
  .
  .
  .

  so, in order to fix that, the find command should be:

  find /var/log/orchestra/ -type f -mtime +2 \! -path '*bz2' -exec bzip2
  '{}' \;

  seems to do the trick here.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: orchestra (not installed)
  ProcVersionSignature: Ubuntu 3.2.0-9.16-generic 3.2.1
  Uname: Linux 3.2.0-9-generic x86_64
  ApportVersion: 1.90-0ubuntu2
  Architecture: amd64
  Date: Sun Jan 22 08:47:45 2012
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  ProcEnviron:
   PATH=(custom, user)
   LANG=fi_FI.UTF-8
   SHELL=/bin/zsh
  SourcePackage: orchestra
  UpgradeStatus: Upgraded to precise on 2012-01-14 (7 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/orchestra/+bug/919913/+subscriptions


References