Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14565 closed defect (worksforme)

upgrade of logrotate deleted existing logrotate.conf

Reported by: brian@… Owned by: markd@…
Priority: High Milestone:
Component: ports Version: 1.6.0
Keywords: etc logrotate logrotate.conf upgrade Cc:
Port:

Description

I recently upgraded logrotate and in doing so, my logrotate.conf file was deleted. Instead I got a shiny new logrotate-default.

Change History (5)

comment:1 Changed 16 years ago by sfiera@…

Keywords: etc logrotate logrotate.conf upgrade added
Milestone: Port Bugs
Owner: changed from macports-tickets@… to markd@…

Assigning to maintainer

comment:2 Changed 16 years ago by markd@…

logrotate doesn't install a file named logrotate.conf, so it can't remove or delete it.

Port logrotate contains:

/opt/local/etc/logrotate-default /opt/local/sbin/logrotate /opt/local/share/man/man8/logrotate.8.gz

comment:3 Changed 16 years ago by brian@…

hmm, thats pretty strange. I agree with you, and did a grep for logrotate.conf, which came up short.

I was doing a slew of upgrades (among those were logrotate), and later that evening I got a: error: cannot stat /opt/local/etc/logrotate.conf: No such file or directory looking at my backup, I had that file in etc, so I assumed that the upgrade of logrotate had deleted my old file.

Ufortunately, I upgraded at least 20 ports when doing the upgrade - so not sure what caused it. I cannot find any other Portfile that contains references to logrotate, and with the potential to remove it.

comment:4 Changed 16 years ago by markd@…

Resolution: worksforme
Status: newclosed

Well I renamed the file to logrotate.conf.sample anyway because that is more clear. I'll close this but it can be reopened if you spot something else.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.