Cron - scheduling the radio to stop causes daemon.err hostapd: Failed to set beacon parameters

Hello, well , perhaps someone knows about this:

I have scheduled the stops and restarts for the radios in the cron as

59 22 * * * /sbin/ifconfig wlan1 down
0 10 * * * /sbin/ifconfig wlan1 up
0 0 * * * /sbin/ifconfig wlan0 down
0 6 * * * /sbin/ifconfig wlan0 up

That causes the following system messages to keep displaying.

message daemon.err hostapd: Failed to set beacon parameters.

So, in order to stop the messaging the radio beams must be completely disabled. Not enough just to be stopped by the executing ifconfig commands.

I have no idea about this, probably a need to disable and enable the radios in the crone instead.

I've got a cron job that calls 'wifi down radio0' which seems to do the job

1 Like

hi ;

I tested this .

05 01 * * * wifi down radio0

28 07 * * * wifi up radio0

05 01 * * * wifi down radio1

28 07 * * * wifi up radio1

It's worked :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.