3 lines
159 B
Text
3 lines
159 B
Text
|
[Service]
|
||
|
ExecStartPost=/bin/sh -ec 'dnf needs-restarting -r | grep -q "Reboot is req.*" && shutdown -r +5 Rebooting after applying package updates || exit 0'
|