/scripts/alcasar-daemon.sh |
---|
44,7 → 44,7 |
-after-update) |
# TODO : check precisely which processes should be restarted (reboot the system or restart alcasar processes) |
# extract processes name : for i in `dnf needs-restarting|cut -d " " -f3|sort -u|tr -d ":"|rev|cut -d"/" -f1|rev`;do;echo $i;done |
# system_processes=`dnf needs-restarting|egrep 'dbus|python|systemd|agetty'|wc -l` # processes to be restarted after glibc update |
# system_processes=`dnf needs-restarting|grep -E 'dbus|python|systemd|agetty'|wc -l` # processes to be restarted after glibc update |
nb_processes=`dnf needs-restarting|wc -l` |
if [ $nb_processes -ne 0 ]; then |
reboot |