Skip to content

Instantly share code, notes, and snippets.

@AndreyKozlov1984
Created June 17, 2016 19:38
Show Gist options
  • Save AndreyKozlov1984/ff8f170bf3718725f46f41f956ae401e to your computer and use it in GitHub Desktop.
Save AndreyKozlov1984/ff8f170bf3718725f46f41f956ae401e to your computer and use it in GitHub Desktop.
cp /tmp/restart.sh /home/vagrant/restart.sh
cat << "ENDSSH" > /etc/cron.d/restart
1 1,5,9,13,17,21 * * * vagrant /bin/bash -l /home/vagrant/restart.sh > /home/vagrant/restart_log 2>&1
ENDSSH
chown root:root /etc/cron.d/restart
chmod 644 /etc/cron.d/restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment