1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

restart kiwix-serve 4AM nightly (not 15min after every hour)

This commit is contained in:
A Holt 2017-11-04 15:33:52 -04:00 committed by GitHub
parent 0ffbd6f119
commit 397bb2781b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,15 +75,15 @@
command: "chown -R root:root {{ iiab_base }}"
# workaround because kiwix-serve does not stay running
- name: Make an entry in crontab to restart every hour
- name: Make an entry in crontab to restart at 4AM
# * * * * * user-name command to be executed
lineinfile: line="15 * * * * root /bin/systemctl restart kiwix-serve.service"
lineinfile: line="0 4 * * * root /bin/systemctl restart kiwix-serve.service"
dest=/etc/crontab
when: is_debuntu
- name: Make an entry in crontab to restart every hour
- name: Make an entry in crontab to restart at 4AM
# * * * * * user-name command to be executed
lineinfile: line="15 * * * * root /usr/bin/systemctl restart kiwix-serve.service"
lineinfile: line="0 4 * * * root /usr/bin/systemctl restart kiwix-serve.service"
dest=/etc/crontab
when: is_redhat