Fix log file rotation.
PID files do not exist, so sending a HUP will not be possible. Use copytruncate instead. Create option is irrelevant in that case. Also, include xrdp.log file.
This commit is contained in:
parent
3a33d2ee40
commit
341ecd47bb
@ -1,9 +1,6 @@
|
||||
/var/log/xrdp-sesman.log {
|
||||
create 644 root root
|
||||
/var/log/xrdp*.log {
|
||||
daily
|
||||
compress
|
||||
missingok
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/xrdp-sesman.pid 2>/dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
copytruncate
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ Summary: Open source remote desktop protocol (RDP) server
|
||||
Name: xrdp
|
||||
Epoch: 1
|
||||
Version: 0.9.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: ASL 2.0
|
||||
Group: Applications/Internet
|
||||
URL: http://www.xrdp.org/
|
||||
@ -183,6 +183,9 @@ fi
|
||||
%{_libdir}/pkgconfig/xrdp.pc
|
||||
|
||||
%changelog
|
||||
* Thu Feb 16 2017 Bojan Smojver <bojan@rexurive.com> - 1:0.9.1-3
|
||||
- Fix log file rotation
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.9.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user