[systemd-devel] How to quiet cron sessions logging with systemd-212?

Ivan Shapovalov intelfx100 at gmail.com
Tue Jun 10 03:31:20 PDT 2014


On Monday 09 June 2014 at 23:32:28, Mike Gilbert wrote:	
> On Mon, Jun 9, 2014 at 4:42 PM, Reindl Harald <h.reindl at thelounge.net> wrote:
> >
> > Am 09.06.2014 22:32, schrieb Leonid Isaev:
> >> On Mon, Jun 09, 2014 at 09:19:20PM +0200, Reindl Harald wrote:
> >>> [...]
> >>>
> >>> on our production infrastrcuture these messages would be
> >>> *a lot* more than all other logs summarized
> >>>
> >>> *and* they are spitted to /var/log/messages to make things worst
> >>>
> >>>> But why can't you write a syslog filter which uses facility as well as program
> >>>> name? So if you believe that systemd-generated messages are useless, drop them
> >>>
> >>> because you *can not* distinguish between *that* user messages
> >>> and system message sbecause they have systemd as program name
> >>> common, the PID changes and you don't want to drop *system
> >>> messages* from systemd
> >>
> >> So, systemd starts certain things on _any_ user "login": be it a real user, or
> >> a daemon. However
> >
> > * why do it need to do that much stuff
> > * why can't it keep that stuff long-running
> >
> > you have already "/usr/lib/systemd/systemd --user" and "(sd-pam)"
> > processes for every userid ever started a cronjob running all
> > the time - so why flood the logs every minute again?
> >
> 
> Now that you mention it, you can cut down on a lot of the log spam by
> enabling "linger" for root and other users which run cron jobs.
> 
> loginctl enable-linger <user>
> 
> This will keep a systemd user instance running so that a new one is
> not spawned every time cron wakes up.

It's more interesting, why a logind session is ever being created for the cron job...
It shouldn't be that way, or do I misunderstand something?

-- 
Ivan Shapovalov / intelfx /
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140610/ad76d242/attachment.sig>


More information about the systemd-devel mailing list