Updated the patch.   The post-install scripts will restart the daemon so
that an upgrade will restart the daemon so that future reloads do work.
This addresses the 3rd scenario in comment #7.  There would be no
regression for users on upgrade.  If the service has been reloaded prior
to the upgrade such that upstart can't manage the daemon then this won't
fix things but won't regress the user either.  In that case, the user
will need to kill the running, unmanaged freeradius process and then
start from upstart again.

** Patch added: "trusty_freeradius_lp1406105.patch"
   
https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/1406105/+attachment/4439874/+files/trusty_freeradius_lp1406105.patch

** Changed in: freeradius (Ubuntu)
       Status: Confirmed => In Progress

** Description changed:

  The freeradius-2.1.12+dfsg-1.2ubuntu8 on Ubuntu 14.04 LTS (Trusty Tahr)
  has a bug in the logrotate script (/etc/logrotate.d/freeradius):
  
  The command /etc/init.d/freeradius reload is used for reloading
  freeradius after its logfile(s) have been rotated. However, in Ubuntu
  14.04 LTS freeradius is managed by Upstart, so that the script cannot
  work (the PID file does not exist).
  
  Therefore, the logrotate script should use initctl reload freeradius
  instead. Please note that this might not work either at the moment, due
  to bug #1282683. However, when this bug is finally fixed, the command
  mentioned earlier should work.
+ 
+ WORKAROUND:
+ 
+ Add an 'exec' in /etc/init/freeradius.conf per the patch in comment #8
+ and change /etc/logrotate.d/freeradius to use 'service freeradius
+ reload' rather then '/etc/init.d/freeradius reload' as per the same
+ patch in comment #8.  Attempt a 'service freeradius stop' and check that
+ the freeradius process is not running (or manually kill it).  From there
+ the service can now be started with 'service freeradius start'

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1406105

Title:
  Broken logrotate script in freeradius-2.1.12+dfsg-1.2ubuntu8 on Ubuntu
  14.04 LTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/1406105/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to