Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


automatic_updates_with_reboot

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
automatic_updates_with_reboot [2014/01/15 15:46] adminautomatic_updates_with_reboot [2014/01/15 15:48] admin
Line 1: Line 1:
-=====Automatic updates with yum-cron and reboot if necessary=====+=====Automatic updates with yum-cron (and reboot if necessary)=====
 My repo server syncs the repositories between 13:00 and 16:00 local time. It will reboot at 06:00 if a kernel update has been installed. My repo server syncs the repositories between 13:00 and 16:00 local time. It will reboot at 06:00 if a kernel update has been installed.
  
Line 21: Line 21:
  
 ===Add reboot script=== ===Add reboot script===
-The yum-cron script /etc/cron.daily/0yum.cron will start before the reboot script /etc/cron.daily/1new-kernel-reboot because of the sorting.+The yum-cron script /etc/cron.daily/0yum.cron will start before the reboot script /etc/cron.daily/1new-kernel-reboot because of sorting.
   vi /etc/cron.daily/1new-kernel-reboot   vi /etc/cron.daily/1new-kernel-reboot
 <code>#!/bin/bash <code>#!/bin/bash
automatic_updates_with_reboot.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1