[Unit] Description=Reboot for pacman offline system-update ConditionPathExists=/system-update [Service] Type=oneshot ExecStart=/bin/sh -c "if systemctl --dry-run soft-reboot 2>/dev/null; then systemctl soft-reboot; else systemctl reboot; fi"