This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reboot Astaro with cronjob

How can i reboot the system every day at the same time,
i configured a cron job, it works only one time, after reboot the system, the cron job is delete by the system.

   


This thread was automatically locked due to age.
  • Which file did you edit ?
    Please edit the crontab-static file and try it again.

    Greetz Bagira  
  • I'm curious, why would you restart Astaro every day? 
  • I don´t understand why you will rebot ASL everyday 
  • I don't know this poster's reason, but more than one of my clients has the requirement to reboot their servers on a weekly basis, and one to reboot daily.  This is part of their protocols required for specific qualification compliance.  
  • I use VPN tunneling through the web to other one and if the astaro get a new IP after 24 hours, my VPN connection do not reconnect sometimes and this is a problem.

    I edit /etc/crontab and /etc/wfe/link/crontab with an string to /sbin/reboot 

    it works only one time and after the Astaro reboot, my changes are remove.
       
  • [ QUOTE ]
    I use VPN tunneling through the web to other one and if the astaro get a new IP after 24 hours, my VPN connection do not reconnect sometimes and this is a problem.

    I edit /etc/crontab and /etc/wfe/link/crontab with an string to /sbin/reboot 

    it works only one time and after the Astaro reboot, my changes are remove.
        

    [/ QUOTE ]

    If I understand you correctly, you are rebooting to renew your DHCP lease so that you are not assigned a new one?  If that is correct, you can achieve this with less drastic measures.  If you issue a dhcpcd interface.

    However normally an interface that is normally online will automaticlly renew its interface.  So I am not sure that rebooting would prevent you from acquiring a different ip.

    However as others stated you need to edit the crontab.static file. 
  • Same Problem here. Maybe a better solution could be to cut the pppoe connection every night with a cronjob and get a new IP. 
    Watch my Thread.