Many messages are output for a user cron job in Red Hat Enterprise Linux 8
Issue
- Many messages were generated for a
cron
job running every one minute in Red Hat Enterprise Linux 8. - The following is the sample.
crond[1237]: (tester) RELOAD (/var/spool/cron/tester)
systemd[1]: Created slice User Slice of UID 1000.
systemd[1]: Started /run/user/1000 mount wrapper.
systemd[1]: Starting User Manager for UID 1000...
systemd[1]: Started Session 64 of user tester.
systemd[3162]: pam_unix(systemd-user:session): session opened for user tester by (uid=0)
systemd[3162]: Listening on Multimedia System.
systemd[3162]: Listening on Sound System.
systemd[3162]: Reached target Paths.
systemd[3162]: Started Mark boot as successful after the user session has run 2 minutes.
systemd[3162]: Reached target Timers.
systemd[3162]: Starting D-Bus User Message Bus Socket.
systemd[3162]: Listening on D-Bus User Message Bus Socket.
systemd[3162]: Reached target Sockets.
systemd[3162]: Reached target Basic System.
systemd[3162]: Starting Sound Service...
systemd[1]: Started User Manager for UID 1000.
CROND[3176]: (tester) CMD (/home/tester/test.sh)
systemd[1]: user-runtime-dir@1000.service: Unit not needed anymore. Stopping.
systemd[1]: Stopping User Manager for UID 1000...
systemd[3162]: Stopped Sound Service.
systemd[3162]: Stopped target Basic System.
systemd[3162]: Stopped target Sockets.
systemd[3162]: Closed Multimedia System.
systemd[3162]: Closed D-Bus User Message Bus Socket.
systemd[3162]: Stopped target Timers.
systemd[3162]: Stopped Mark boot as successful after the user session has run 2 minutes.
systemd[3162]: Stopped target Paths.
systemd[3162]: Closed Sound System.
systemd[3162]: Reached target Shutdown.
systemd[3162]: Starting Exit the Session...
systemd[1]: user@1000.service: Killing process 3181 (systemctl) with signal SIGKILL.
systemd[1]: user-runtime-dir@1000.service: Unit not needed anymore. Stopping.
systemd[1]: Stopped User Manager for UID 1000.
systemd[1]: user-runtime-dir@1000.service: Unit not needed anymore. Stopping.
systemd[1]: Removed slice User Slice of UID 1000.
systemd[1]: Stopping /run/user/1000 mount wrapper...
systemd[1]: Stopped /run/user/1000 mount wrapper.
- The
cron
job is executed every one minutes and it can cause the flood of the messages in the log files.
Environment
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.