aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/pacman-offline-done-poweroff.service
blob: 441daa9614dccea380cc8572ee161756fcf1a698 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# (C) 2017-2025 by Christian Hesse <mail@eworm.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.


[Unit]
Description=Offline system update with pacman - Poweroff
Documentation=https://pacman-offline.eworm.de/
After=pacman-offline.service
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target system-update.target
ConditionPathExists=/run/pacman-offline-done
ConditionPathExists=/run/pacman-offline-poweroff
SuccessAction=poweroff

[Service]
Type=oneshot
ExecStart=/usr/bin/rm --force /run/pacman-offline-done /run/pacman-offline-poweroff