OPNsense Forum

English Forums => General Discussion => Topic started by: lonelyadmin on August 31, 2023, 04:25:53 PM

Title: Custom script and logging
Post by: lonelyadmin on August 31, 2023, 04:25:53 PM
I have a sh script that writes to a log file. It's primarily used on linux boxes, how can I adapt it to OPNsense?

I usually just drop it in /usr/local/bin and it logs to /var/log. I noticed there isn't a logrotate install. How do I handle log file rotation in OPNsense?

Thanks!