freeradius-server/freeradius-server-2.1.1-logrotate_su.patch
Andrey Karepin 80e6dde4db Accepting request 203485 from home:vitezslav_cizek:branches:network
- update to 3.0.0
  * new feature release
  * see /usr/share/doc/packages/freeradius-server/ChangeLog
    for complete list of changes in this release
  * documentation for upgrading from 2.x is in /etc/raddb/README.rst
- drop oracle support (wasn't built anyway)
- dropped patches (obsolete):
  * freeradius-server-2.1.6-codecleanup.patch
  * freeradius-server-2.1.6-dialup_admin.patch
  * freeradius-server-2.1.1-edirectory.patch
- added systemd service unit
  * radiusd.service
- added systemd-tmpfile for /var/run/radiusd
  * freeradius-tmpfiles.conf
- added gpg-offline verification
  * freeradius-server.keyring

OBS-URL: https://build.opensuse.org/request/show/203485
OBS-URL: https://build.opensuse.org/package/show/network/freeradius-server?expand=0&rev=51
2013-10-16 18:25:42 +00:00

51 lines
1.2 KiB
Diff

Index: freeradius-server-3.0.0/suse/radiusd-logrotate
===================================================================
--- freeradius-server-3.0.0.orig/suse/radiusd-logrotate 2013-10-15 18:26:37.704603079 +0200
+++ freeradius-server-3.0.0/suse/radiusd-logrotate 2013-10-15 18:27:37.232218844 +0200
@@ -6,6 +6,7 @@
# second technique, you will need another cron job that removes old
# detail files. You do not need to comment out the below for method #2.
/var/log/radius/radacct/*/detail {
+ su radiusd radiusd
compress
dateext
maxage 365
@@ -16,6 +17,7 @@
}
/var/log/radius/radius.log {
+ su radiusd radiusd
compress
dateext
maxage 365
@@ -25,11 +27,12 @@
missingok
create
postrotate
- kill -HUP `cat /var/run/radiusd/radiusd.pid`
+ kill -HUP `cat /var/run/radiusd/radiusd.pid` || :
endscript
}
/var/log/radius/radwatch.log {
+ su radiusd radiusd
compress
dateext
maxage 365
@@ -41,6 +44,7 @@
}
/var/log/radius/radwtmp {
+ su radiusd radiusd
compress
dateext
maxage 365
@@ -55,6 +59,7 @@
}
/var/log/radius/sqllog.sql {
+ su radiusd radiusd
compress
dateext
maxage 365