ansible/roles/rsyslog_collector/templates/rotate-remote-logs.service.j2

13 lines
313 B
Text
Raw Normal View History

{{ ansible_managed | comment }}
[Unit]
Description=Rotate remote logs
[Service]
User=root
Type=OneShot
ExecStart={{ rsyslog_collector_rotate_path }} \
--base-dir {{ rsyslog_collector_keep_days }} \
--compress-days {{ rsyslog_collector_compress_days }} \
--keep-days {{ rsyslog_collector_base_dir }}