Skip to content

Instantly share code, notes, and snippets.

@mastrolinux
Created September 5, 2013 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastrolinux/6449425 to your computer and use it in GitHub Desktop.
Save mastrolinux/6449425 to your computer and use it in GitHub Desktop.
{% set ide_num = grains['nodename'].split('-')[1].lstrip('0') %}
{{ (10 * ide_num|int) % 60 }} 1,5,9,13,17,21 * * * /usr/local/bin/supervisorctl -c /home/ubuntu/etc/supervisord.conf restart ide:ide-00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment