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:
parent
0ffbd6f119
commit
397bb2781b
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue