diff options
author | 2024-05-27 19:00:35 +0200 | |
---|---|---|
committer | 2024-05-29 09:23:49 +0200 | |
commit | 3686c619c00b04e4104565532bbad2e76c8fab2c (patch) | |
tree | 236d293176d07b1d579409a8bcf8e67894cd8952 /systemd/pacman-offline-reboot.service | |
parent | 406b5748d77aec618dadc4bb96b19dac8a6bef55 (diff) | |
download | pacman-offline-3686c619c00b04e4104565532bbad2e76c8fab2c.tar.gz pacman-offline-3686c619c00b04e4104565532bbad2e76c8fab2c.tar.zst |
make soft-reboot functionality mandatory
This makes sure /run is preserved, and allows us to implement some
more functionality later on.
Diffstat (limited to 'systemd/pacman-offline-reboot.service')
-rw-r--r-- | systemd/pacman-offline-reboot.service | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/systemd/pacman-offline-reboot.service b/systemd/pacman-offline-reboot.service index 26dca94..c131d70 100644 --- a/systemd/pacman-offline-reboot.service +++ b/systemd/pacman-offline-reboot.service @@ -6,9 +6,9 @@ # (at your option) any later version. [Unit] -Description=Reboot for pacman offline system-update +Description=Soft-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" +ExecStart=/usr/bin/systemctl soft-reboot |