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

Mantas Mikulėnas grawity at gmail.com
Mon Jun 9 02:01:56 PDT 2014


I think there's also another problem – logind starts the user manager
instance for cronjobs while it shouldn't do so for batch stuff. Probably a
PAM configuration issue.

-- 
Mantas Mikulėnas <grawity at gmail.com>
On Jun 9, 2014 9:34 AM, "Leho Kraav" <leho at kraav.com> 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:01 xps14 systemd[1]: Created slice user-0.slice.
> juuni 09 09:20:01 xps14 systemd[1]: Starting User Manager for UID 0...
> juuni 09 09:20:01 xps14 systemd[1]: Starting Session 107 of user root.
> juuni 09 09:20:01 xps14 systemd[1]: Started Session 107 of user root.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Paths.
> juuni 09 09:20:02 xps14 systemd[15113]: Reached target Paths.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Timers.
> juuni 09 09:20:02 xps14 systemd[15113]: Reached target Timers.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Sockets.
> juuni 09 09:20:02 xps14 systemd[15113]: Reached target Sockets.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Basic System.
> juuni 09 09:20:02 xps14 systemd[15113]: Reached target Basic System.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Default.
> juuni 09 09:20:02 xps14 systemd[15113]: Reached target Default.
> juuni 09 09:20:02 xps14 systemd[15113]: Startup finished in 31ms.
> 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[15113]: Stopping Default.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopped target Default.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopping Basic System.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopped target Basic System.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopping Paths.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopped target Paths.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopping Timers.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopped target Timers.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopping Sockets.
> juuni 09 09:20:02 xps14 systemd[15113]: Stopped target Sockets.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Shutdown.
> juuni 09 09:20:02 xps14 systemd[15113]: Reached target Shutdown.
> juuni 09 09:20:02 xps14 systemd[15113]: Starting Exit the Session...
> juuni 09 09:20:02 xps14 systemd[15113]: Received SIGRTMIN+24 from PID
> 15128 (kill).
> juuni 09 09:20:02 xps14 systemd[15114]: pam_unix(systemd-user:session):
> session closed for user root
> 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.
>
> Can I quiet this down somehow?
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140609/2f3a9544/attachment-0001.html>


More information about the systemd-devel mailing list