[Unit] Description=Update and restart OS Requires=network.target After=network.target [Service] User=build Type=oneshot IgnoreSIGPIPE=no ExecStart=/usr/bin/paru -Syu --noconfirm ExecStartPost=/bin/bash -c 'sudo /usr/local/bin/arch-needs-restart | grep -Piq '"'"'# [^:]+: reboot required'"'"' && sudo reboot || true' [Install] WantedBy=multi-user.target