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:
Bojan Smojver 2017-02-16 10:02:51 +11:00
parent 3a33d2ee40
commit 341ecd47bb
2 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,6 @@
/var/log/xrdp-sesman.log { /var/log/xrdp*.log {
create 644 root root
daily daily
compress compress
missingok missingok
postrotate copytruncate
/bin/kill -HUP `cat /var/run/xrdp-sesman.pid 2>/dev/null` 2> /dev/null || true
endscript
} }

View File

@ -4,7 +4,7 @@ Summary: Open source remote desktop protocol (RDP) server
Name: xrdp Name: xrdp
Epoch: 1 Epoch: 1
Version: 0.9.1 Version: 0.9.1
Release: 2%{?dist} Release: 3%{?dist}
License: ASL 2.0 License: ASL 2.0
Group: Applications/Internet Group: Applications/Internet
URL: http://www.xrdp.org/ URL: http://www.xrdp.org/
@ -183,6 +183,9 @@ fi
%{_libdir}/pkgconfig/xrdp.pc %{_libdir}/pkgconfig/xrdp.pc
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild