/FreeRADIUS-NAS-change-restarter

Restarts FreeRADIUS when NAS entries are changed in SQL database

Primary LanguagePythonMIT LicenseMIT

FreeRADIUS NAS change restarter

Yes, the name is a mouthful.

What is this?

A MySQL table definition, triggers, and a python program to track changes to the NAS table and restart FreeRADIUS after ensuring that other RADIUS servers are running (to avoid creating downtime).

Why would I use it?

What does it need to run?

How do I use this?

  • Create the NAS updates table by loading sql/table.sql into MySQL.
  • Load triggers from sql/triggers.sql
  • Customize reloader.json for your environment. Save reloader.json to /etc/reloader.json
  • Make sure /var/lib/reloader exists and the user that will run reloader has read and write permissions to it.
  • Make sure there is at least one entry in the nas_changes table as the result of a change in the nas table
  • Run reloader.py from cron every 5 minutes or so.