[Bug 407324] Re: /etc/init.d/freeradius stop don't work

Patrick patrick at buytekonline.com.au
Mon Jan 25 11:15:22 UTC 2016


I found this is an issue with the .pid file even if you restart it the
process id is still the same number and I get loads of errors such as
port in use. I modified the files listed below to get it working but the
service freeradius stop or restart command still does not work im on
14.04.3.

/etc/init.d/freeradius

# freeradius -- Radius server
#

description     "Extensible, configurable radius daemon"
author          "Michael Vogt <mvo at ubuntu.com>"

start on runlevel [2345]
stop on runlevel [!2345]

umask 002 - add

respawn

#pre-start script  - comment out
#  if [ -r /etc/default/freeradius ]; then  - comment out
#    . /etc/default/freeradius - comment out
#  fi - comment out
#  exec /usr/sbin/freeradius -f $FREERADIUS_OPTIONS - comment out
#end script - comment out

pre-start script  - add
if [ -x /var/run/freeradius/freeradius.pid ]; then  - add
 rm -rf /var/run/freeradius/freeradius.pid  - add
fi  - add

if [ ! -d /var/run/freeradius ]; then - add
  mkdir -p /var/run/freeradius - add
  chown freerad:freerad /var/run/freeradius - add
  chmod 775 /var/run/freeradius - add
fi - add
end script - add


/etc/init/freeradius

umask 002 - add

. /lib/lsb/init-functions

PROG="freeradius"
PROGRAM="/usr/sbin/freeradius"
PIDFILE="/var/run/freeradius/freeradius.pid"
DESCR="FreeRADIUS daemon"

if [ -r /etc/default/$PROG ]; then
  . /etc/default/$PROG
fi

test -f $PROGRAM || exit 0

# /var/run may be a tmpfs - comment out
# if [ ! -d /var/run/freeradius ]; then - comment out
#  mkdir -p /var/run/freeradius - comment out
#  chown freerad:freerad /var/run/freeradius - comment out
#  chmod 775 /var/run/freeradius - comment out
# fi - comment out

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

Title:
  /etc/init.d/freeradius stop don't work

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



More information about the Ubuntu-server-bugs mailing list