Skip to content

Commit 9f8aa1d

Browse files
authored
Update rguard to use install-lib (#689)
1 parent 30d4584 commit 9f8aa1d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

package/reboot-guard/package

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pkgnames=(reboot-guard)
66
pkgdesc="Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass"
77
url=https://github.com/stephanritscher/reboot-guard
8-
pkgver=1.0.1-6
8+
pkgver=1.0.1-7
99
timestamp=2020-05-04T06:16Z
1010
section="devel"
1111
maintainer="Eeems <eeems@eeems.email>"
@@ -34,8 +34,13 @@ configure() {
3434
}
3535

3636
preremove() {
37-
if systemctl list-units --full -all | grep -Fq 'rguard.service'; then
38-
systemctl disable --now rguard
37+
if is-active rguard.service; then
38+
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
3944
fi
4045
}
4146

0 commit comments

Comments
 (0)