1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00
dragonflydb-dragonfly/tools/packaging/debian
s13k ff2359af30
fix(tools): Prevent dragonfly.logrotate to stop logrotate service (#4176)
Update dragonfly.logrotate

If multiple logs are being rotated and one of them fails (due to exit 1), the other logs that follow won't be rotated either, unless logrotate is run again.

If you want to prevent the rotation of a specific log file and not affect the rest of the logs, you'll want to handle the condition properly to ensure that logrotate doesn't abort due to the failure of the prerotate script.

To prevent the rotation of a specific log file without causing issues for other logs, you can use exit 0 to prevent rotation cleanly or design your prerotate script to handle conditions carefully.

Signed-off-by: s13k <s13k@pm.me>
2024-11-24 17:27:05 +00:00
..
compat feat(build): debian package building (#689) 2023-01-16 17:44:53 +02:00
control fix: logrotate for dragonfly logs (#1972) 2023-10-09 20:08:37 +03:00
dragonfly.conf fix: logrotate for dragonfly logs (#1972) 2023-10-09 20:08:37 +03:00
dragonfly.install feat(build): debian package building (#689) 2023-01-16 17:44:53 +02:00
dragonfly.logrotate fix(tools): Prevent dragonfly.logrotate to stop logrotate service (#4176) 2024-11-24 17:27:05 +00:00
dragonfly.postinst feat(build): debian package building (#689) 2023-01-16 17:44:53 +02:00
dragonfly.postrm feat(build): debian package building (#689) 2023-01-16 17:44:53 +02:00
dragonfly.preinst feat(build): debian package building (#689) 2023-01-16 17:44:53 +02:00
dragonfly.service fix: systemd configuration (#1097) 2023-04-16 06:41:02 -07:00
rules feat(debian): retain debug symbols in deb package (#1464) 2023-06-22 19:12:10 +03:00