Saturday, May 16, 2009

Installation FreeRadius on Linux part 3

After installation and setup is finished, we can set up so that each time the service radiusd automatically executed. This is how to configure automatic service at boot time:
  • Login as root.
  • Copy freeradius-1.1.7/scripts/rc.radiusd to /etc/init.d #cp freeradius-1.1.7/scripst/rc.radiusd /etc/init.d/radiusd
  • Change the file permission to 755, #chmod 755 /etc/init.d/radiusd
  • Edit radiusd file, add the following line at the top of the file (this is only for information only):
# chkconfig: 2345 80 30
# description: FreeRadius 1.1.7
# processname: radiusd
# pidfile: $rundir/radiusd.pid
  • Make link to radiusd. Go to the directory /etc/rc3.d #link -s /etc/init.d/radiusd /etc/rc3.d/S80radiusd.
Number 80 can be changed with the other number which is not conflicts with the other service, check whether the number is already used by another service, can be seen in the directory /etc/rc3.d or in /etc/rc5.d. (rc3 , for multi-user mode, rc5 for X11 mode). In this case I only put in multiuser mode only.
  • To check whether the service is on the radiusd on init 3 mode can be checked using the command # chkconfig --list.
  • Radiusd has function to start, stop and restart the service radius.
  • Make a testing to run #/etc/init.d/radiusd start (to run the service radius), and #/etc/init.d/radiusd stop (to stop the service radius), or #/etc/init.d/radiusd restart (to restart service radius).
  • If all goes smoothly, try booting the server.
  • Configuring radiusd service has been completed.

No comments:

Post a Comment