[systemd-devel] How to reduce systemd logging to syslog ?

Reindl Harald h.reindl at thelounge.net
Mon Jul 21 06:38:02 PDT 2014



Am 21.07.2014 15:18, schrieb Mantas Mikulėnas:
> On Mon, Jul 21, 2014 at 1:41 AM,  <surfer at emailengine.net> wrote:
>>                 2014-07-20T00:15:01.978142-07:00 core systemd[1]: Starting Session 2 of user root.
>>                 2014-07-20T00:15:01.979526-07:00 core systemd[1]: Started Session 2 of user root.
>>                 2014-07-20T00:30:01.065850-07:00 core systemd[1]: Starting Session 3 of user root.
>>                 2014-07-20T00:30:01.067825-07:00 core systemd[1]: Started Session 3 of user root.
>>                 2014-07-20T00:45:01.155187-07:00 core systemd[1]: Starting Session 4 of user root.
>>                 2014-07-20T00:45:01.182571-07:00 core systemd[1]: Started Session 4 of user root.
> 
> Looks like something – perhaps a cron daemon – opens a logind session
> every 15 minutes. But if I remember correctly, background jobs are not
> meant to do that at all? It might be that the log spam is caused by
> misconfigured /etc/pam.d/cron or something such...

no it is caused by systemd and intentionally..........
in F21 you get much more lines for cronjobs
https://bugzilla.redhat.com/show_bug.cgi?id=1072368#c3

Jan 15 04:07:01 testserver systemd[29118]: Starting Default.
Jan 15 04:07:01 testserver systemd[29118]: Reached target Default.
Jan 15 04:07:01 testserver systemd[29118]: Startup finished in 3ms.
Jan 15 04:07:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:07:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:07:01 testserver systemd[29118]: Stopping Default.
Jan 15 04:07:01 testserver systemd[29118]: Stopped target Default.
Jan 15 04:07:01 testserver systemd[29118]: Starting Shutdown.
Jan 15 04:07:01 testserver systemd[29118]: Reached target Shutdown.
Jan 15 04:07:01 testserver systemd[29118]: Starting Exit the Session...
Jan 15 04:07:01 testserver systemd[29118]: Received SIGRTMIN+24 from PID 29138 (kill).
Jan 15 04:07:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:07:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:07:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:08:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:08:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:08:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:08:01 testserver systemd[29149]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:08:01 testserver systemd[29149]: Starting Default.
Jan 15 04:08:01 testserver systemd[29149]: Reached target Default.
Jan 15 04:08:01 testserver systemd[29149]: Startup finished in 3ms.
Jan 15 04:08:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:08:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:08:01 testserver systemd[29149]: Stopping Default.
Jan 15 04:08:01 testserver systemd[29149]: Stopped target Default.
Jan 15 04:08:01 testserver systemd[29149]: Starting Shutdown.
Jan 15 04:08:01 testserver systemd[29149]: Reached target Shutdown.
Jan 15 04:08:01 testserver systemd[29149]: Starting Exit the Session...
Jan 15 04:08:01 testserver systemd[29149]: Received SIGRTMIN+24 from PID 29169 (kill).
Jan 15 04:08:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:08:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:08:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:09:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:09:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:09:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:09:01 testserver systemd[29181]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:09:01 testserver systemd[29181]: Starting Default.
Jan 15 04:09:01 testserver systemd[29181]: Reached target Default.
Jan 15 04:09:01 testserver systemd[29181]: Startup finished in 3ms.
Jan 15 04:09:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:09:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:09:01 testserver systemd[29181]: Stopping Default.
Jan 15 04:09:01 testserver systemd[29181]: Stopped target Default.
Jan 15 04:09:01 testserver systemd[29181]: Starting Shutdown.
Jan 15 04:09:01 testserver systemd[29181]: Reached target Shutdown.
Jan 15 04:09:01 testserver systemd[29181]: Starting Exit the Session...
Jan 15 04:09:01 testserver systemd[29181]: Received SIGRTMIN+24 from PID 29201 (kill).
Jan 15 04:09:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:09:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:09:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:10:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:10:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:10:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:10:01 testserver systemd[1]: Starting user-48.slice.
Jan 15 04:10:01 testserver systemd[1]: Created slice user-48.slice.
Jan 15 04:10:01 testserver systemd[1]: Starting User Manager for 48...
Jan 15 04:10:01 testserver systemd[29234]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:10:02 testserver systemd[29243]: Failed to open private bus connection: Failed to connect to socket
/run/user/48/dbus/user_bus_socket: No such file or directory
Jan 15 04:10:02 testserver systemd[29243]: Starting Default.
Jan 15 04:10:02 testserver systemd[29243]: Reached target Default.
Jan 15 04:10:02 testserver systemd[29243]: Startup finished in 6ms.
Jan 15 04:10:02 testserver systemd[29234]: Starting Default.
Jan 15 04:10:02 testserver systemd[29234]: Reached target Default.
Jan 15 04:10:02 testserver systemd[29234]: Startup finished in 39ms.
Jan 15 04:10:02 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:10:02 testserver systemd[1]: Started User Manager for 48.
Jan 15 04:10:02 testserver systemd[1]: Stopping User Manager for 48...
Jan 15 04:10:02 testserver systemd[29243]: Stopping Default.
Jan 15 04:10:02 testserver systemd[29243]: Stopped target Default.
Jan 15 04:10:02 testserver systemd[29243]: Starting Shutdown.
Jan 15 04:10:02 testserver systemd[29243]: Reached target Shutdown.
Jan 15 04:10:02 testserver systemd[29243]: Starting Exit the Session...
Jan 15 04:10:02 testserver systemd[29243]: Received SIGRTMIN+24 from PID 29296 (kill).
Jan 15 04:10:02 testserver systemd[1]: Stopped User Manager for 48.
Jan 15 04:10:02 testserver systemd[1]: Stopping user-48.slice.
Jan 15 04:10:02 testserver systemd[1]: Removed slice user-48.slice.
Jan 15 04:10:02 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:10:02 testserver systemd[29234]: Stopping Default.
Jan 15 04:10:02 testserver systemd[29234]: Stopped target Default.
Jan 15 04:10:02 testserver systemd[29234]: Starting Shutdown.
Jan 15 04:10:02 testserver systemd[29234]: Reached target Shutdown.
Jan 15 04:10:02 testserver systemd[29234]: Starting Exit the Session...
Jan 15 04:10:02 testserver systemd[29234]: Received SIGRTMIN+24 from PID 29325 (kill).
Jan 15 04:10:02 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:10:02 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:10:02 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:11:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:11:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:11:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:11:01 testserver systemd[29336]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:11:01 testserver systemd[29336]: Starting Default.
Jan 15 04:11:01 testserver systemd[29336]: Reached target Default.
Jan 15 04:11:01 testserver systemd[29336]: Startup finished in 3ms.
Jan 15 04:11:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:11:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:11:01 testserver systemd[29336]: Stopping Default.
Jan 15 04:11:01 testserver systemd[29336]: Stopped target Default.
Jan 15 04:11:01 testserver systemd[29336]: Starting Shutdown.
Jan 15 04:11:01 testserver systemd[29336]: Reached target Shutdown.
Jan 15 04:11:01 testserver systemd[29336]: Starting Exit the Session...
Jan 15 04:11:01 testserver systemd[29336]: Received SIGRTMIN+24 from PID 29356 (kill).
Jan 15 04:11:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:11:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:11:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:12:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:12:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:12:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:12:01 testserver systemd[29366]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:12:01 testserver systemd[29366]: Starting Default.
Jan 15 04:12:01 testserver systemd[29366]: Reached target Default.
Jan 15 04:12:01 testserver systemd[29366]: Startup finished in 3ms.
Jan 15 04:12:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:12:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:12:01 testserver systemd[29366]: Stopping Default.
Jan 15 04:12:01 testserver systemd[29366]: Stopped target Default.
Jan 15 04:12:01 testserver systemd[29366]: Starting Shutdown.
Jan 15 04:12:01 testserver systemd[29366]: Reached target Shutdown.
Jan 15 04:12:01 testserver systemd[29366]: Starting Exit the Session...
Jan 15 04:12:01 testserver systemd[29366]: Received SIGRTMIN+24 from PID 29386 (kill).
Jan 15 04:12:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:12:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:12:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:13:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:13:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:13:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:13:01 testserver systemd[29397]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:13:01 testserver systemd[29397]: Starting Default.
Jan 15 04:13:01 testserver systemd[29397]: Reached target Default.
Jan 15 04:13:01 testserver systemd[29397]: Startup finished in 4ms.
Jan 15 04:13:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:13:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:13:01 testserver systemd[29397]: Stopping Default.
Jan 15 04:13:01 testserver systemd[29397]: Stopped target Default.
Jan 15 04:13:01 testserver systemd[29397]: Starting Shutdown.
Jan 15 04:13:01 testserver systemd[29397]: Reached target Shutdown.
Jan 15 04:13:01 testserver systemd[29397]: Starting Exit the Session...
Jan 15 04:13:01 testserver systemd[29397]: Received SIGRTMIN+24 from PID 29417 (kill).
Jan 15 04:13:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:13:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:13:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:14:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:14:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:14:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:14:01 testserver systemd[29428]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:14:01 testserver systemd[29428]: Starting Default.
Jan 15 04:14:01 testserver systemd[29428]: Reached target Default.
Jan 15 04:14:01 testserver systemd[29428]: Startup finished in 3ms.
Jan 15 04:14:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:14:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:14:01 testserver systemd[29428]: Stopping Default.
Jan 15 04:14:01 testserver systemd[29428]: Stopped target Default.
Jan 15 04:14:01 testserver systemd[29428]: Starting Shutdown.
Jan 15 04:14:01 testserver systemd[29428]: Reached target Shutdown.
Jan 15 04:14:01 testserver systemd[29428]: Starting Exit the Session...
Jan 15 04:14:01 testserver systemd[29428]: Received SIGRTMIN+24 from PID 29448 (kill).
Jan 15 04:14:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:14:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:14:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:15:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:15:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:15:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:15:01 testserver systemd[29464]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:15:01 testserver systemd[29464]: Starting Default.
Jan 15 04:15:01 testserver systemd[29464]: Reached target Default.
Jan 15 04:15:01 testserver systemd[29464]: Startup finished in 3ms.
Jan 15 04:15:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:15:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:15:01 testserver systemd[29464]: Stopping Default.
Jan 15 04:15:01 testserver systemd[29464]: Stopped target Default.
Jan 15 04:15:01 testserver systemd[29464]: Starting Shutdown.
Jan 15 04:15:01 testserver systemd[29464]: Reached target Shutdown.
Jan 15 04:15:01 testserver systemd[29464]: Starting Exit the Session...
Jan 15 04:15:01 testserver systemd[29464]: Received SIGRTMIN+24 from PID 29497 (kill).
Jan 15 04:15:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:15:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:15:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:16:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:16:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:16:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:16:01 testserver systemd[29509]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:16:01 testserver systemd[29509]: Starting Default.
Jan 15 04:16:01 testserver systemd[29509]: Reached target Default.
Jan 15 04:16:01 testserver systemd[29509]: Startup finished in 3ms.
Jan 15 04:16:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:16:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:16:01 testserver systemd[29509]: Stopping Default.
Jan 15 04:16:01 testserver systemd[29509]: Stopped target Default.
Jan 15 04:16:01 testserver systemd[29509]: Starting Shutdown.
Jan 15 04:16:01 testserver systemd[29509]: Reached target Shutdown.
Jan 15 04:16:01 testserver systemd[29509]: Starting Exit the Session...
Jan 15 04:16:01 testserver systemd[29509]: Received SIGRTMIN+24 from PID 29529 (kill).
Jan 15 04:16:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:16:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:16:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:17:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:17:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:17:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:17:01 testserver systemd[29541]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:17:01 testserver systemd[29541]: Starting Default.
Jan 15 04:17:01 testserver systemd[29541]: Reached target Default.
Jan 15 04:17:01 testserver systemd[29541]: Startup finished in 3ms.
Jan 15 04:17:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:17:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:17:01 testserver systemd[29541]: Stopping Default.
Jan 15 04:17:01 testserver systemd[29541]: Stopped target Default.
Jan 15 04:17:01 testserver systemd[29541]: Starting Shutdown.
Jan 15 04:17:01 testserver systemd[29541]: Reached target Shutdown.
Jan 15 04:17:01 testserver systemd[29541]: Starting Exit the Session...
Jan 15 04:17:01 testserver systemd[29541]: Received SIGRTMIN+24 from PID 29561 (kill).
Jan 15 04:17:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:17:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:17:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:18:01 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:18:01 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:18:01 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:18:01 testserver systemd[29572]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:18:01 testserver systemd[29572]: Starting Default.
Jan 15 04:18:01 testserver systemd[29572]: Reached target Default.
Jan 15 04:18:01 testserver systemd[29572]: Startup finished in 4ms.
Jan 15 04:18:01 testserver systemd[1]: Started User Manager for 0.
Jan 15 04:18:01 testserver systemd[1]: Stopping User Manager for 0...
Jan 15 04:18:01 testserver systemd[29572]: Stopping Default.
Jan 15 04:18:01 testserver systemd[29572]: Stopped target Default.
Jan 15 04:18:01 testserver systemd[29572]: Starting Shutdown.
Jan 15 04:18:01 testserver systemd[29572]: Reached target Shutdown.
Jan 15 04:18:01 testserver systemd[29572]: Starting Exit the Session...
Jan 15 04:18:01 testserver systemd[29572]: Received SIGRTMIN+24 from PID 29592 (kill).
Jan 15 04:18:01 testserver systemd[1]: Stopped User Manager for 0.
Jan 15 04:18:01 testserver systemd[1]: Stopping user-0.slice.
Jan 15 04:18:01 testserver systemd[1]: Removed slice user-0.slice.
Jan 15 04:18:24 testserver systemd[1]: Starting user-0.slice.
Jan 15 04:18:24 testserver systemd[1]: Created slice user-0.slice.
Jan 15 04:18:24 testserver systemd[1]: Starting User Manager for 0...
Jan 15 04:18:24 testserver systemd[29620]: Failed to open private bus connection: Failed to connect to socket
/run/user/0/dbus/user_bus_socket: No such file or directory
Jan 15 04:18:24 testserver systemd[29620]: Starting Default.
Jan 15 04:18:24 testserver systemd[29620]: Reached target Default.
Jan 15 04:18:24 testserver systemd[29620]: Startup finished in 3ms.
Jan 15 04:18:24 testserver systemd[1]: Started User Manager for 0.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140721/ddc00807/attachment-0001.sig>


More information about the systemd-devel mailing list