You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logrotate renames and compesses logging file. After that it removes or creates new.
xrdp-sesman after received HUP not created new log, only compare old and new logging file name.
Can you add code, that delete file descriptor to old removed file and crete/open new logging file.
Operating system & version
Alt Linux
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
Xorg
What desktop environment do you use?
MATE
Environment xrdp running on
No response
What's your client?
No response
Area(s) with issue?
No response
Steps to reproduce
Open session. Wait for logrotate to rotate xrdp-sesman.log
✔️ Expected Behavior
New file and logs in it. Closed old file descriptor
❌ Actual Behavior
Whether the new file exists or not depends on the logrotate settings. The file descriptor for the old file exists, but the file no longer exists. Logs are not written to the new file.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
I can see where you're coming from, but this isn't at all simple.
Both on the main log files are written by multiple processes. It's not just a question of closing a file and opening it - we'd need to synchronise access to the file from multiple processes, and we don't have all the plumbing in place to do that.
The workaround is to use syslog logging, which will stop the main log file growing.
I'll mark this as a feature request for now.
matt335672
changed the title
Logrotate and xrdp-sesman interaction
Support logrotate for xrdp and xrdp-sesman
Oct 18, 2024
xrdp version
0.9.23.1
Detailed xrdp version, build options
Operating system & version
Alt Linux
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
Xorg
What desktop environment do you use?
MATE
Environment xrdp running on
No response
What's your client?
No response
Area(s) with issue?
No response
Steps to reproduce
Open session. Wait for logrotate to rotate xrdp-sesman.log
✔️ Expected Behavior
New file and logs in it. Closed old file descriptor
❌ Actual Behavior
Whether the new file exists or not depends on the logrotate settings. The file descriptor for the old file exists, but the file no longer exists. Logs are not written to the new file.
Anything else?
No response
The text was updated successfully, but these errors were encountered: