• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Freeradius - Service restart from Script

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
1 Posts 1 Posters 2.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    NMaas
    last edited by Apr 7, 2011, 4:55 PM

    Hi there,

    I'm working on my freeradius implemantion within pfsense.
    I did use an external freeradius appliance until now, but I want pfsense to do server and client for the captive portal.
    For this, I configured the crontab like this:

    */5 * * * * /usr/local/etc/rc.d/make_radius.sh >> /tmp/make_radius.log # Generate Radius from Local

    And made an radius generator:

    #!/bin/sh
    echo -n "Make Radius "
    date '+%d-%m-%Y %k:%M:%S'
    /usr/local/etc/rc.d/radiusd.sh stop
    killall -9 radiusd
    killall radiusd
    /usr/local/bin/curl -s –insecure https://MYWEBSITEWITHRADIUSFILE > /usr/local/etc/raddb/users
    /usr/local/etc/rc.d/radiusd.sh start

    It does work, but not always.
    After reboot, the Service is running, goes down, and stays down.
    The script does run but can't reenable it - only myself via the pfsense Service Tab in the Webportal (marked Down there aswell).
    After that, it does run a while and everythings working - and out of the sudden, everything is down again...
    So some cron runs do go through... and then some really "kill it".

    How do I solve this problem?

    Thanks!

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received