Bug 31044 - Некорректно ротируется лог
Summary: Некорректно ротируется лог
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: freeradius (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-03 10:02 MSK by Evgenii Terechkov
Modified: 2016-01-05 12:19 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2015-06-03 10:02:57 MSK
root@radtac /var/log/radius # ls -lht *.log                             
-rw-rw---- 1 radiusd radiusd 0 Jun  1 00:55 radius.log
root@radtac /var/log/radius # ls -lht radius.log*
-rw-rw---- 1 radiusd radiusd   0 Jun  1 00:55 radius.log
-rw-rw---- 1 radiusd radiusd 54K Jun  1 00:52 radius.log.1.bz2
-rw-rw---- 1 radiusd radiusd 35K May  1 00:52 radius.log.2.bz2
-rw-rw---- 1 radiusd radiusd 56K Apr  1 00:52 radius.log.3.bz2
-rw-rw---- 1 radiusd radiusd 25K Feb 28 23:20 radius.log.4.bz2
root@radtac /var/log/radius # rpm -qf radius.log 
freeradius-2.2.0-alt4
root@radtac /var/log/radius # lsof -p `pidof radiusd`|grep -i radius.log
radiusd 1316 radiusd    3w   REG         182,211073  3658532        168  (deleted)/var/log/radius/radius.log.1


процесс radiusd не отслеживает сам статус логов (по крайней мере, ветки 2.x.x). Для этого ему требуется SIGHUP.
Comment 1 Repository Robot 2016-01-05 02:00:23 MSK
freeradius-2.2.9-alt1 -> sisyphus:

* Tue Jan 05 2016 Terechkov Evgenii <evg@altlinux> 2.2.9-alt1
- 2.2.9

* Tue Jan 05 2016 Terechkov Evgenii <evg@altlinux> 2.2.0-alt5
- Change mode of /var/log/{radius,radius/radacct} to 1770 according to ALT Secure Packaging Policy
- Change owner of /var/log/radius/radius.log
- Do not rotate/replace radutmp (ALT#28653, RH#904578)
- Move tmpfiles manifest in right place (Thanks, repocop!)
- Send SIGHUP to radiusd after radius.log rotation (ALT#31044)
- Separate /usr/share/freeradius to common noarch subpackage (ALT#28477)
- Systemd unit file added (Thanks, repocop!)