Custom script and logging

Started by lonelyadmin, August 31, 2023, 04:25:53 PM

Previous topic - Next topic
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!