Re: override logrotate.timer from another package?

2023-07-05 Thread Charles Curley
On Wed, 5 Jul 2023 12:30:21 +0200 Harald Dunkel wrote: > On 2023-07-04 14:36:19, Charles Curley wrote: > [...] > Yes. Its my own metapackage to be installed on all our hosts in the > office to establish certain configuration standards, like hourly log > file rotation, our own certificates, a

Re: override logrotate.timer from another package?

2023-07-05 Thread Harald Dunkel
Hi Tim, On 2023-07-04 19:35:35, Tim Woodall wrote: On Tue, 4 Jul 2023, Harald Dunkel wrote: I'm not exactly clear what you're doing but I guess you're creating a package that provides the config file? Yes, together with other things (other config files, package depen- dencies, etc).

Re: override logrotate.timer from another package?

2023-07-05 Thread Harald Dunkel
On 2023-07-04 14:36:19, Charles Curley wrote: No. All changes the local administrator makes should go under /etc/systemd because you risk updates over-writing things in /lib/systemd and elsewhere. As for dh_installsystemd, the first paragraph of the man page for it says,

Re: override logrotate.timer from another package?

2023-07-04 Thread Tim Woodall
On Tue, 4 Jul 2023, Harald Dunkel wrote: Hi folks, what is the recommended way to override logrotate.timer from a metapackage to get hourly logfile rotation (depending on size and age of the logfile, as usual)? I had added etc/systemd/system/logrotate.timer.d/hourly.conf I'm not

Re: override logrotate.timer from another package?

2023-07-04 Thread Charles Curley
On Tue, 4 Jul 2023 11:09:18 +0200 Harald Dunkel wrote: > I had added > > etc/systemd/system/logrotate.timer.d/hourly.conf > > to the package install file, but at upgrade time it complained > that nobody ran systemctl daemon-reload. Ain't this the job of > the DEBHELPER macro in the

override logrotate.timer from another package?

2023-07-04 Thread Harald Dunkel
Hi folks, what is the recommended way to override logrotate.timer from a metapackage to get hourly logfile rotation (depending on size and age of the logfile, as usual)? I had added etc/systemd/system/logrotate.timer.d/hourly.conf to the package install file, but at upgrade time it