User Tools

Site Tools


schedule-reboot-once

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
schedule-reboot-once [2022/03/30 17:10] – created baumischedule-reboot-once [2024/01/03 15:13] (current) baumi
Line 1: Line 1:
 ====== Schedule a reboot once via cron ====== ====== Schedule a reboot once via cron ======
  
 +<code bash>
 root@host:/# cat /etc/cron.d/reboot root@host:/# cat /etc/cron.d/reboot
  
-42 3 31 3 * root rm /etc/cron.d/reboot && /sbin/reboot +42 3 31 3 * root rm /etc/cron.d/reboot && /usr/sbin/reboot 
 +</code>
 {{tag>kb linux}} {{tag>kb linux}}
schedule-reboot-once.1648653020.txt.gz · Last modified: 2022/03/30 17:10 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki