OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: NW4FUN on February 28, 2022, 05:39:38 PM

Title: FreeRADIUS auto restart
Post by: NW4FUN on February 28, 2022, 05:39:38 PM
Hello all,

I've been testing OPNsense for the last month or so and just recently moved to prod. Very randomly, my FreeRADIUS service stops (sometimes also ntopNG) and I'd like to find a way to automatically restart the service(s) when this happens.
I'm not sure I've found a way to do this, anyone has got any pointers?

Cheers,

NW4FUN
Title: Re: FreeRADIUS auto restart
Post by: NW4FUN on March 01, 2022, 11:53:47 AM
Anyone?
Title: Re: FreeRADIUS auto restart
Post by: mimugmail on March 01, 2022, 04:34:51 PM
You can add a cronjob to regurlary restart FreeRADIUS? It should be there with latest version

https://github.com/opnsense/plugins/blob/master/net/freeradius/src/opnsense/service/conf/actions.d/actions_freeradius.conf#L17
Title: Re: FreeRADIUS auto restart
Post by: NW4FUN on March 01, 2022, 05:33:13 PM
Thanks! I didn't realise I could do this via a cron job... ;D

However, I cannot do the same with NTOPNG which is the other service that gets stopped pretty much every other day for no apparent reason...any suggestion?
Title: Re: FreeRADIUS auto restart
Post by: mimugmail on March 01, 2022, 07:14:06 PM
It needs a description like in the link above