[systemd-devel] How to quiet cron sessions logging with systemd-212?
Leho Kraav
leho at kraav.com
Tue Jun 10 10:05:33 PDT 2014
On 09.06.2014 09:33, Leho Kraav wrote:
> After upgrading systemd 208 -> 212, every single cron job creates this
> flood in systemd journal:
>
> juuni 09 09:20:01 xps14 crond[15112]: pam_unix(crond:session): session
> opened for user root by (uid=0)
> juuni 09 09:20:01 xps14 systemd[15113]: pam_unix(systemd-user:session):
> session opened for user root by (uid=0)
> juuni 09 09:20:01 xps14 systemd[1]: Starting user-0.slice.
> ...
> juuni 09 09:20:02 xps14 systemd[1]: Started User Manager for UID 0.
> juuni 09 09:20:02 xps14 CROND[15116]: (root) CMD (test -x
> /usr/sbin/run-crons && /usr/sbin/run-crons )
> juuni 09 09:20:02 xps14 CROND[15112]: pam_unix(crond:session): session
> closed for user root
> juuni 09 09:20:02 xps14 systemd[1]: Stopping User Manager for UID 0...
> ...
> juuni 09 09:20:02 xps14 systemd[1]: Stopped User Manager for UID 0.
> juuni 09 09:20:02 xps14 systemd[1]: Stopping user-0.slice.
> juuni 09 09:20:02 xps14 systemd[1]: Removed slice user-0.slice.
Another related question to trying to filter this output: why some lines
are logged with program "crond" and some "CROND"?
With "loginctl linger-enable" a shorter version of a cron run looks like
this now:
...
juuni 10 19:30:01 xps14 crond[21310]: pam_unix(crond:session): session
opened for user root by (uid=0)
juuni 10 19:30:01 xps14 CROND[21311]: (root) CMD (test -x
/usr/sbin/run-crons && /usr/sbin/run-crons )
juuni 10 19:30:01 xps14 systemd[1]: Starting Session 99 of user root.
juuni 10 19:30:01 xps14 systemd[1]: Started Session 99 of user root.
juuni 10 19:30:01 xps14 CROND[21310]: pam_unix(crond:session): session
closed for user root
...
I am considering filtering "crond" out of the human-visible status
window and that's how the uppercase vs lowercase question arose.
More information about the systemd-devel
mailing list