Skip to content

Commit

Permalink
Add a cron job to restart ncats-webd daily
Browse files Browse the repository at this point in the history
This adds a configuration to create a cron job in the cyhy_dashboard
Ansible role that will restart the ncats-webd service daily at
~midnight EST. This is done because the team using the dashboard has
been periodically requesting manual restarts of the service due to the
dashboard becoming slow or unresponsive over time. Once the service is
restarted the dashboard returns to normal usability. Hopefully
restarting it daily will be a tolerable band-aid for the performance
issues.
  • Loading branch information
mcdonnnj committed Oct 16, 2024
1 parent cc38493 commit f12b807
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ansible/roles/cyhy_dashboard/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,11 @@
ansible.builtin.service:
name: ncats-webui
state: started

- name: Create a cron job to restart the ncats-webd service daily
ansible.builtin.cron:
hour: '5'
job: systemctl restart ncats-webd
minute: '0'
name: "Restart ncats-webd service daily"
user: root

0 comments on commit f12b807

Please sign in to comment.