logrotation works

This commit is contained in:
Andre Heber
2024-08-21 00:09:50 +02:00
parent 37c2aa9267
commit 3303307299

View File

@ -13,5 +13,5 @@ I want a docker image that behaves more like a VM:
- [x] Starting & Stopping services with `s6-rc start myapp` and `s6-rc stop myapp`
- [x] `docker exec` into the container and run myapp manually, it uses the env vars of the shell
- [x] Logging: `/var/log/myapp/current` is filled
- [ ] Logrotation
- [x] Logrotation: With `ps aufxww`, you can see that `s6-log -b -- n20 s1000000 T /var/log/myapp` is running, which means that it rotates when the file becomes 1MB, it keeps 20 files and with `T` prepends ISO 8601 timestamp to each line
- [ ] Cron