You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could listen to SIGUSR2 which would be like SIGUSR1 but with the difference that the following files will be removed first:
/tmp/openwisp/checksum
/etc/openwisp/checksum
This will force the reload of the configuration.
It would be super great to also provide some sort of shortcut to send these signals to the agent, easily, with a command that we can remember, what about:
I find myself doing these kind of things all the time manually, I am sure many users do the same or struggle to find out how to do this, so if we add an easy way and document it, it will be useful.
The text was updated successfully, but these errors were encountered:
Implementation I can think of: Adding a signal handler for SIGUSR2 in the agent, and when the signal is received, delete the checksum files (/tmp/openwisp/checksum and /etc/openwisp/checksum). Additionally, also just to confirm here... adding CLI commands like openwisp_config --check-conf and openwisp_config --force-conf for ease of use, and document the new feature in the user guide can solve this manual work here..
Implementation I can think of: Adding a signal handler for SIGUSR2 in the agent, and when the signal is received, delete the checksum files (/tmp/openwisp/checksum and /etc/openwisp/checksum). Additionally, also just to confirm here... adding CLI commands like openwisp_config --check-conf and openwisp_config --force-conf for ease of use, and document the new feature in the user guide can solve this manual work here..
@shwetd19 sounds good! The agent name now is openwisp-config (before it was openwisp_config).
We could listen to SIGUSR2 which would be like SIGUSR1 but with the difference that the following files will be removed first:
This will force the reload of the configuration.
It would be super great to also provide some sort of shortcut to send these signals to the agent, easily, with a command that we can remember, what about:
I find myself doing these kind of things all the time manually, I am sure many users do the same or struggle to find out how to do this, so if we add an easy way and document it, it will be useful.
The text was updated successfully, but these errors were encountered: