Ansible-Linux_Base/roles/base/templates/dnf-automatic-install.service-7.j2

3 lines
155 B
Text
Raw Normal View History

2021-09-01 17:31:49 -06:00
[Service]
ExecStartPost=/bin/sh -ec 'needs-restarting -r | grep -q "Reboot is req.*" && shutdown -r +5 Rebooting after applying package updates || exit 0'