I am running UFW on a Pi and I have a cron job which backs up the log file and then removes it.
However, UFW doesn't recreate the log until after a reboot.
After removing the file and confirming that the log wasn't recreated I checked the status of UFW which indicated it was active and logging.
How can I get UFW to recreate the ufw.log file (and write to it) after I delete it?