Ticket #190 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Removing debathena-counterlog mails root once a day

Reported by: xavid Owned by: broder
Priority: low Milestone:
Component: -- Keywords: proposed
Cc: Fixed in version:
Upstream bug:

Description

Removing debathena-counterlog doesn't really do anything, because /etc/cron.daily/debathena-counterlog, being a conf file, doesn't get removed. Moreover, if you also remove its dependencies, like machtype, this leads to it sending mail to root once a day. Solutions that occur to me include removing /etc/cron.daily/debathena-counterlog if it's unmodified or putting some sort of check there so it doesn't run if it would cause an error. Removing it would be best, but I'm not sure how that's viewed in the debian way of life.

Change History

comment:1 Changed 13 years ago by jdreed

It seems like the easiest thing to do is to move the code from /etc/cron.daily/debathena-counterlog into, say, /usr/sbin/debathena-counterlog or something, and then the cron script just runs /usr/sbin/debathena-counterlog if it exists. Removing the package would remove /usr/sbin/debathena-counterlog, thus solving the problem.

comment:2 Changed 13 years ago by tabbott

Indeed, jdreed's proposal is the standard way that one handles this problem; it's common in many Debian packages.

comment:3 Changed 13 years ago by broder

  • Status changed from new to accepted
  • Owner set to broder
  • Keywords proposed added

Fixed in r23725 and r23726 and uploaded to -proposed. I'll plan to move this to production late Tuesday barring objections.

comment:4 Changed 13 years ago by broder

  • Status changed from accepted to closed
  • Resolution set to fixed

Just deployed to production

Note: See TracTickets for help on using tickets.