Commit c930e59c by John Jarvis

run send-logs-to-s3 on shutdown

parent 935038d7
...@@ -110,6 +110,13 @@ ...@@ -110,6 +110,13 @@
- name: create s3 logrotate script - name: create s3 logrotate script
template: > template: >
dest=/edx/bin/send-logs-to-s3 dest={{ COMMON_BIT_DIR }}/send-logs-to-s3
src=send-logs-to-s3.j2 mode=0755 owner=root group=root src=send-logs-to-s3.j2 mode=0755 owner=root group=root
when: COMMON_S3_LOGS when: COMMON_S3_LOGS
- name: run s3 logrotate script on shutdown
file: >
state=link
src={{ COMMON_BIN_DIR }}/send-logs-to-s3
path=/etc/rc0.d/S00send-logs-to-s3
when: COMMON_S3_LOGS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment