Created
          June 17, 2016 19:38 
        
      - 
      
- 
        Save AndreyKozlov1984/ff8f170bf3718725f46f41f956ae401e to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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