Bug#1052487: aide-common: please recommend canonical "cron | cron-daemon"

2023-10-04 Thread Marc Haber
On Tue, Oct 03, 2023 at 11:26:51PM +0200, Alexandre Detiste wrote:
> BTW: to make systemd-cron life easier, the .service/.timer
> name has to exactly match the cron job name.

Is that a recommendation to rename /etc/cron.daily/aide to
/etc/cron.daily/dailyaidecheck because timer and service are
dailyaidechck as well?

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



Bug#1052487: aide-common: please recommend canonical "cron | cron-daemon"

2023-10-03 Thread Alexandre Detiste
Le mar. 3 oct. 2023 à 21:24, Marc Haber
 a écrit :
> I am just contemplating dropping the Recommends. A sysv system is likely
> to have cron installed anyway.

Then it's fine.

BTW: to make systemd-cron life easier, the .service/.timer
name has to exactly match the cron job name.

That is not possible if there is already a .service
for the daemon of this name.

So the heuristic table is the most
practical stop-gap thing to do.


Greets



Bug#1052487: aide-common: please recommend canonical "cron | cron-daemon"

2023-10-03 Thread Marc Haber
On Tue, Oct 03, 2023 at 04:33:37PM +0200, Alexandre Detiste wrote:
>  a écrit :
> > On systemd systems, aide already uses a systemd timer. Given that the
> > users of other init systems have to do manual work anyway, I intend to
> > fully drop the cron dependency with one of the next uploads.
> >
> > Is that the right thing to do from your point of view, and would you
> > recommend doing so?
> 
> I don't recommend breaking non-systemd systems.
> 
> I guess it's better for them a cron job with sane defaults than nothing.

I am just contemplating dropping the Recommends. A sysv system is likely
to have cron installed anyway.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



Bug#1052487: aide-common: please recommend canonical "cron | cron-daemon"

2023-10-03 Thread Alexandre Detiste
Le mar. 3 oct. 2023 à 16:21, Marc Haber
 a écrit :
> On systemd systems, aide already uses a systemd timer. Given that the
> users of other init systems have to do manual work anyway, I intend to
> fully drop the cron dependency with one of the next uploads.
>
> Is that the right thing to do from your point of view, and would you
> recommend doing so?

I don't recommend breaking non-systemd systems.

I guess it's better for them a cron job with sane defaults than nothing.

> > (this is a list of cron job that does
> >  "[ -d /run/systemd/system ] && exit 0")
>
> As my cron job is using a slightly different idiom, would I make things
> easier for you if I wrote "[ -d /run/systemd/system ] && exit 0"
> explicitly instad of my if construct?

This old idea was dropped in the upstream project altogether
because it was growing in a full blown bash AST parser.

Greetings,

And thank you



Bug#1052487: aide-common: please recommend canonical "cron | cron-daemon"

2023-10-03 Thread Marc Haber
On Sat, Sep 23, 2023 at 01:10:59AM +0200, Alexandre Detiste wrote:
> Please recommends the canonical "cron | cron-daemon"
> instead of plain "cron".
> 
> This way apt won't say anything about cron being
> recommended when the stop-gap systemd-cron stub is already installed.

On systemd systems, aide already uses a systemd timer. Given that the
users of other init systems have to do manual work anyway, I intend to
fully drop the cron dependency with one of the next uploads.

Is that the right thing to do from your point of view, and would you
recommend doing so?

For the time being, I have committed the change recommended by you.

> On my side I have added to systemd-cron an ignore rule for aide-common:
> 
> https://salsa.debian.org/detiste-guest/systemd-cron/-/commit/356bfedd393b0bd8663b7737e7ba5b987916b403
> 
> (this is a list of cron job that does 
>  "[ -d /run/systemd/system ] && exit 0")

As my cron job is using a slightly different idiom, would I make things
easier for you if I wrote "[ -d /run/systemd/system ] && exit 0"
explicitly instad of my if construct?

Greetings
Marc



Bug#1052487: aide-common: please recommend canonical "cron | cron-daemon"

2023-09-22 Thread Alexandre Detiste
Package: aide-common
Version: 0.18.6-1
Severity: minor

Please recommends the canonical "cron | cron-daemon"
instead of plain "cron".

This way apt won't say anything about cron being
recommended when the stop-gap systemd-cron stub is already installed.




On my side I have added to systemd-cron an ignore rule for aide-common:

https://salsa.debian.org/detiste-guest/systemd-cron/-/commit/356bfedd393b0bd8663b7737e7ba5b987916b403

(this is a list of cron job that does 
 "[ -d /run/systemd/system ] && exit 0")

Greetings,

Alexandre


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.4.0-4-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages aide-common depends on:
ii  aide0.18.6-1
ii  debconf [debconf-2.0]   1.5.82
ii  liblockfile11.17-1+b1
ii  systemd [systemd-sysusers]  254.1-3
ii  ucf 3.0043+nmu1

Versions of packages aide-common recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20220412cvs-1
pn  cron   
ii  mailutils [mailx]  1:3.16-1+b1

aide-common suggests no packages.

-- debconf information excluded