~fo0bar/turku/turku-agent-encoding

« back to all changes in this revision

Viewing changes to turku-agent.cron

  • Committer: Ryan Finnie
  • Date: 2018-06-02 23:28:32 UTC
  • Revision ID: ryan.finnie@canonical.com-20180602232832-339zx2if132fuedd
Add systemd timers for turku-agent-ping and turku-update-config

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
2
 
*/5 * * * * root turku-agent-ping --wait=300 >/dev/null 2>/dev/null
3
 
0 0,12 * * * root turku-update-config --wait=7200 >/dev/null 2>/dev/null
 
2
*/5 * * * * root sh -c 'systemctl is-active basic.target 2>/dev/null >/dev/null || turku-agent-ping --wait=300 >/dev/null 2>/dev/null'
 
3
0 0,12 * * * root sh -c 'systemctl is-active basic.target 2>/dev/null >/dev/null || turku-update-config --wait=7200 >/dev/null 2>/dev/null'