From: Arran Cudbard-Bell Date: Wed, 5 Sep 2012 17:46:25 +0000 (+0100) Subject: Add hup to default logrotate script X-Git-Tag: release_3_0_0_beta0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5cfc7ba555713e166194d9d30bbbf83682ef2c;p=thirdparty%2Ffreeradius-server.git Add hup to default logrotate script --- diff --git a/scripts/logrotate.freeradius b/scripts/logrotate.freeradius deleted file mode 100644 index a12505b9b96..00000000000 --- a/scripts/logrotate.freeradius +++ /dev/null @@ -1,12 +0,0 @@ -# -# Sample configuration file for the log rotation scripts. -# -# It needs to be edited for your local configuration. -# -/var/log/radius/radius.log { - weekly - missingok - rotate 14 - compress - notifempty -} diff --git a/scripts/logrotate.freeradius.in b/scripts/logrotate.freeradius.in new file mode 100644 index 00000000000..a54df0e57a0 --- /dev/null +++ b/scripts/logrotate.freeradius.in @@ -0,0 +1,16 @@ +# +# Sample logrotate file for FreeRADIUS. +# +# It needs to be edited for your local configuration. +# +@localstatedir@/log/radius/radius.log { + daily + rotate 14 + compress + delaycompress + missingok + notifempty + postrotate + kill -HUP `cat @localstatedir@/run/radiusd.pid` > /dev/null 2>&1 + endscript +}