How can I rotate logs generated externally with s6-log?
Hello everybody, I'm configuring Tomoyo Linux following this guide:
https://wiki.archlinux.org/title/TOMOYO_Linux#Log_daemon
I decided to make an oneshot script in s6
/etc/s6/adminsv/tomoyo-audit/up
-----------------------------------------
#!/bin/execlineb -P
exec /usr/sbin/tomoyo-auditd
/etc/s6/adminsv/tomoyo-audit/down
-------------------------------------------
#!/bin/execlineb -P
exec pkill tomoyo-audit
/etc/s6/adminsv/tomoyo-audit/type
-------------------------------------------
oneshot
I know that configuration file for tomoyo-audit is in /etc/tomoyo/tools/auditd.conf, but I haven't found a way to configure tomoyo-audit to run in "foreground".
I don't know if I can use s6-log only for rotate purposes. Or maybe you know such a trick to make tomoyo-audit run in foreground and log with s6-log. In the worst case I should use logrotate but I don't know if I can avoid install another tool.