diff options
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 08e730b..652d8c4 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -356,6 +356,14 @@ task 'nsd_failover', group => 'frontends', mode => '500'; append_if_no_such_line '/etc/daily.local', '/usr/local/bin/dns-failover.ksh'; + + file '/tmp/root.cron', + ensure => 'file', + content => "*\t*\t*\t*\t*\t-ns /usr/local/bin/dns-failover.ksh", + mode => '600'; + + run '{ crontab -l -u root ; cat /tmp/root.cron; } | uniq | crontab -u root -'; + run 'rm /tmp/root.cron'; }; desc 'Setup DTail'; |
