bug in fortune-mod-on-login or /etc/profile or logrotate
Elan Ruusamäe
glen at delfi.ee
Tue May 17 21:45:40 CEST 2005
i get daily fortunes from logrotate cron.
i really don't think the fortunes should be outputed on cronjobs (the package
description doesn't say so ;P)
these get executed because:
1. /etc/profile is called somehow from logrotate postscripts
2. /etc/profile.d/fortune-mod.sh is called from /etc/profile
so should the /etc/profile.d/*.sh called only on interactive shells?
somehow prevent logrotate post scripts calling /etc/profile?
are there (/etc/profile.d) any scripts which should be called for cron
scripts? i have all them useful only for user terminals.
btw, it *might* have something to do with the fact that root shell
is /bin/bash not /bin/sh
> /etc/cron.daily/logrotate:
>
>
> But hey, at the end of the day, numbers rule.
>
> - Linus Torvalds on linux-kernel
>
>
> BOFH excuse #58:
>
> high pressure system failure
>
>
> BOFH excuse #197:
>
> I'm sorry a pentium won't do, you need an SGI to connect with us.
>
>
> BOFH excuse #209:
>
> Only people with names beginning with 'A' are getting mail this week (a la
Microsoft)
>
>
> The haughty do but build castle walls behind which they try to hide their
> doubts and fears.
>
> -- Bene Gesserit Axiom
--
glen
More information about the pld-devel-en
mailing list