ClearFoundation Tracker - ClearOS
View Issue Details
0011311ClearOSapp-radius - RADIUS Serverpublic2016-12-02 13:382019-06-13 03:35
NickH 
 
normalminoralways
closedfixed 
7.2.0 
 
0011311: Radius logrotate script fails if radius is not running
Ir radius is not running you get the following logrotate error from anacron:
Redirecting to /bin/systemctl reload radiusd.service
Job for radiusd.service invalid.
error: error running non-shared postrotate script for /var/log/radius/radius.log of '/var/log/radius/radius.log

This is because the logrotate configlet does a "/sbin/service radiusd reload" which is invalid if radiusd is not running. Really it needs to detect if radiusd is running before doing a reload. A condrestart should be avoided as this stops and starts the app rather than reload the config in a running app. If that cannot be achieved, consider using the copytruncate function in the logrotate configlet which would avoid needing to reload radiusd - although it does have its own attendant issues.
No tags attached.
Issue History
2016-12-02 13:38NickHNew Issue
2016-12-05 15:52user2Statusnew => confirmed
2016-12-05 15:55user2Note Added: 0004211
2016-12-06 12:16NickHNote Added: 0004241
2019-06-13 03:35NickHNote Added: 0012191
2019-06-13 03:35NickHStatusconfirmed => closed
2019-06-13 03:35NickHResolutionopen => fixed

Notes
(0004211)
user2   
2016-12-05 15:55   
This should be reported upstream. There's a related issue here:

https://bugzilla.redhat.com/show_bug.cgi?id=1187904 [^]
(0004241)
NickH   
2016-12-06 12:16   
Downloading the latest package from github shows that the logrotate script was changed in 3.0.7 to use copytruncate (/doc/ChangeLog). I guess we have to wait for upstream to catch up.
(0012191)
NickH   
2019-06-13 03:35   
Fixed by upstream release