We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d4584 commit 9f8aa1dCopy full SHA for 9f8aa1d
package/reboot-guard/package
@@ -5,7 +5,7 @@
5
pkgnames=(reboot-guard)
6
pkgdesc="Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass"
7
url=https://github.com/stephanritscher/reboot-guard
8
-pkgver=1.0.1-6
+pkgver=1.0.1-7
9
timestamp=2020-05-04T06:16Z
10
section="devel"
11
maintainer="Eeems <eeems@eeems.email>"
@@ -34,8 +34,13 @@ configure() {
34
}
35
36
preremove() {
37
- if systemctl list-units --full -all | grep -Fq 'rguard.service'; then
38
- systemctl disable --now rguard
+ if is-active rguard.service; then
+ echo "Stopping rguard.service"
39
+ systemctl stop rguard.service
40
+ fi
41
+ if is-enabled rguard.service; then
42
+ echo "Disabling rguard.service"
43
+ systemctl disable rguard.service
44
fi
45
46
0 commit comments