cron.d/remote_syslog_compress should skip .bz2 files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Unassigned |
Bug Description
The cronjob remote_
Subject: Cron <root@foo> find /var/log/orchestra/ -type f -mtime +2 -exec bzip2 '{}' \;
bzip2: Input file /var/log/
bzip2: Input file /var/log/
bzip2: Input file /var/log/
.
.
.
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)
ProcVersionSign
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)
Related branches
Changed in orchestra (Ubuntu): | |
status: | New → Confirmed |
assignee: | Canonical Server Team (canonical-server) → Marc Cluet (lynxman) |
no longer affects: | orchestra (Ubuntu) |
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | Undecided → Medium |
status: | New → Triaged |
could you please take a look and see if this is someting you want to integrate?