This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2167137 - Crontab leads to the repeated Daily Cleanup in systemd
Summary: Crontab leads to the repeated Daily Cleanup in systemd
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: crontabs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Staněk
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-05 04:24 UTC by mx
Modified: 2023-09-20 12:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-20 12:42:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-5377 0 None Migrated None 2023-09-20 12:42:12 UTC
Red Hat Issue Tracker RHELPLAN-147585 0 None None None 2023-02-05 04:26:19 UTC

Description mx 2023-02-05 04:24:57 UTC
Description of problem:

Each time of running a job in crontab will leads to a `Daily Cleanup of User's Temporary Directories`, which is shown in /var/log/messages

Note that there may have many jobs in crontab, some may even run one time per a minute, which will leads the file of /var/log/messages is fulled with `Daily Cleanup` logs. 
That makes this file is !!! not !!! easy !!! to read !!!

Version-Release number of system
rhel 9.0 to 9.1

How to reproduce:
create a each-minute crontab job, and then to view /var/log/messages 


Expected results:
The same as it in rhel8/rehl7, do not loging this `Daily Cleanup` log for crontab

Additional info:
sample log in /var/log/messages
```
Nov 16 08:23:11 hostname systemd[1]: user: Deactivated successfully.
Nov 16 08:23:11 hostname systemd[1]: Stopped User Manager for UID 0.
Nov 16 08:23:11 hostname systemd[1]: Stopping User Runtime Directory /run/user/0...
Nov 16 08:23:11 hostname systemd[1]: run-user-0.mount: Deactivated successfully.
Nov 16 08:23:11 hostname systemd[1]: user-runtime-dir: Deactivated successfully.
Nov 16 08:23:11 hostname systemd[1]: Stopped User Runtime Directory /run/user/0.
Nov 16 08:23:11 hostname systemd[1]: Removed slice User Slice of UID 0.
Nov 16 08:24:01 hostname systemd[1]: Created slice User Slice of UID 0.
Nov 16 08:24:01 hostname systemd[1]: Starting User Runtime Directory /run/user/0...
Nov 16 08:24:01 hostname systemd[1]: Finished User Runtime Directory /run/user/0.
Nov 16 08:24:01 hostname systemd[1]: Starting User Manager for UID 0...
Nov 16 08:24:01 hostname systemd[2058053]: Queued start job for default target Main User Target.
Nov 16 08:24:01 hostname systemd[2058053]: Created slice User Application Slice.
Nov 16 08:24:01 hostname systemd[2058053]: Mark boot as successful after the user session has run 2 minutes was skipped because of a failed condition check (ConditionUser=!@system).
Nov 16 08:24:01 hostname systemd[2058053]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 08:24:01 hostname systemd[2058053]: Reached target Paths.
Nov 16 08:24:01 hostname systemd[2058053]: Reached target Timers.
Nov 16 08:24:01 hostname systemd[2058053]: Starting D-Bus User Message Bus Socket...
Nov 16 08:24:01 hostname systemd[2058053]: PipeWire PulseAudio was skipped because of a failed condition check (ConditionUser=!root).
Nov 16 08:24:01 hostname systemd[2058053]: Listening on PipeWire Multimedia System Socket.
Nov 16 08:24:01 hostname systemd[2058053]: Starting Create User's Volatile Files and Directories...
Nov 16 08:24:01 hostname systemd[2058053]: Finished Create User's Volatile Files and Directories.
Nov 16 08:24:01 hostname systemd[2058053]: Listening on D-Bus User Message Bus Socket.
Nov 16 08:24:01 hostname systemd[2058053]: Reached target Sockets.
Nov 16 08:24:01 hostname systemd[2058053]: Reached target Basic System.
Nov 16 08:24:01 hostname systemd[2058053]: Reached target Main User Target.
Nov 16 08:24:01 hostname systemd[2058053]: Startup finished in 114ms.
Nov 16 08:24:01 hostname systemd[1]: Started User Manager for UID 0.
Nov 16 08:24:01 hostname systemd[1]: Started Session 1425 of User root.
Nov 16 08:24:01 hostname systemd[1]: session-1425.scope: Deactivated successfully.
Nov 16 08:24:11 hostname systemd[1]: Stopping User Manager for UID 0...
Nov 16 08:24:11 hostname systemd[2058053]: Activating special unit Exit the Session...
Nov 16 08:24:11 hostname systemd[2058053]: Stopped target Main User Target.
Nov 16 08:24:11 hostname systemd[2058053]: Stopped target Basic System.
Nov 16 08:24:11 hostname systemd[2058053]: Stopped target Paths.
Nov 16 08:24:11 hostname systemd[2058053]: Stopped target Sockets.
Nov 16 08:24:11 hostname systemd[2058053]: Stopped target Timers.
Nov 16 08:24:11 hostname systemd[2058053]: Stopped Daily Cleanup of User's Temporary Directories.
Nov 16 08:24:11 hostname systemd[2058053]: Closed D-Bus User Message Bus Socket.
Nov 16 08:24:11 hostname systemd[2058053]: Closed PipeWire Multimedia System Socket.
Nov 16 08:24:11 hostname systemd[2058053]: Stopped Create User's Volatile Files and Directories.
Nov 16 08:24:11 hostname systemd[2058053]: Removed slice User Application Slice.
Nov 16 08:24:11 hostname systemd[2058053]: Reached target Shutdown.
Nov 16 08:24:11 hostname systemd[2058053]: Finished Exit the Session.
Nov 16 08:24:11 hostname systemd[2058053]: Reached target Exit the Session.
Nov 16 08:24:11 hostname systemd[1]: user: Deactivated successfully.
Nov 16 08:24:11 hostname systemd[1]: Stopped User Manager for UID 0.
Nov 16 08:24:11 hostname systemd[1]: Stopping User Runtime Directory /run/user/0...
Nov 16 08:24:11 hostname systemd[1]: run-user-0.mount: Deactivated successfully.
Nov 16 08:24:11 hostname systemd[1]: user-runtime-dir: Deactivated successfully.
Nov 16 08:24:11 hostname systemd[1]: Stopped User Runtime Directory /run/user/0.
Nov 16 08:24:11 hostname systemd[1]: Removed slice User Slice of UID 0.
Nov 16 08:25:01 hostname systemd[1]: Created slice User Slice of UID 0.
Nov 16 08:25:01 hostname systemd[1]: Starting User Runtime Directory /run/user/0...
Nov 16 08:25:01 hostname systemd[1]: Started Session 1428 of User apache.
Nov 16 08:25:01 hostname systemd[1]: Finished User Runtime Directory /run/user/0.
Nov 16 08:25:01 hostname systemd[1]: Starting User Manager for UID 0...
Nov 16 08:25:01 hostname systemd[2058262]: Queued start job for default target Main User Target.
Nov 16 08:25:01 hostname systemd[2058262]: Created slice User Application Slice.
Nov 16 08:25:01 hostname systemd[2058262]: Mark boot as successful after the user session has run 2 minutes was skipped because of a failed condition check (ConditionUser=!@system).
Nov 16 08:25:01 hostname systemd[2058262]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 08:25:01 hostname systemd[2058262]: Reached target Paths.
Nov 16 08:25:01 hostname systemd[2058262]: Reached target Timers.
Nov 16 08:25:01 hostname systemd[2058262]: Starting D-Bus User Message Bus Socket...
Nov 16 08:25:01 hostname systemd[2058262]: PipeWire PulseAudio was skipped because of a failed condition check (ConditionUser=!root).
Nov 16 08:25:01 hostname systemd[2058262]: Listening on PipeWire Multimedia System Socket.
Nov 16 08:25:01 hostname systemd[2058262]: Starting Create User's Volatile Files and Directories...
Nov 16 08:25:01 hostname systemd[2058262]: Finished Create User's Volatile Files and Directories.
Nov 16 08:25:01 hostname systemd[2058262]: Listening on D-Bus User Message Bus Socket.
Nov 16 08:25:01 hostname systemd[2058262]: Reached target Sockets.
Nov 16 08:25:01 hostname systemd[2058262]: Reached target Basic System.
Nov 16 08:25:01 hostname systemd[2058262]: Reached target Main User Target.
Nov 16 08:25:01 hostname systemd[2058262]: Startup finished in 116ms.
```

```
# cat /var/log/messages | grep -i daily

Nov 16 00:12:01 hostname systemd[435836]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 00:12:11 hostname systemd[435836]: Stopped Daily Cleanup of User's Temporary Directories.
Nov 16 00:13:01 hostname systemd[435946]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 00:13:12 hostname systemd[435946]: Stopped Daily Cleanup of User's Temporary Directories.
Nov 16 00:14:02 hostname systemd[436081]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 00:14:12 hostname systemd[436081]: Stopped Daily Cleanup of User's Temporary Directories.
Nov 16 00:15:01 hostname systemd[436200]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 00:15:11 hostname systemd[436200]: Stopped Daily Cleanup of User's Temporary Directories.
Nov 16 00:16:01 hostname systemd[436342]: Started Daily Cleanup of User's Temporary Directories.
Nov 16 00:16:11 hostname systemd[436342]: Stopped Daily Cleanup of User's Temporary Directories.
Nov 16 00:17:01 hostname systemd[436454]: Started Daily Cleanup of User's Temporary Directories.
```

Comment 1 RHEL Program Management 2023-09-20 12:40:43 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-20 12:42:16 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


Note You need to log in before you can comment on or make changes to this bug.