Skip to content

Commit

Permalink
Update rguard to use install-lib (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Nov 22, 2023
1 parent 2cc01e5 commit 7820db0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions package/reboot-guard/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(reboot-guard)
pkgdesc="Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass"
url=https://github.com/stephanritscher/reboot-guard
pkgver=1.0.1-6
pkgver=1.0.1-7
timestamp=2020-05-04T06:16Z
section="devel"
maintainer="Eeems <eeems@eeems.email>"
Expand Down Expand Up @@ -34,8 +34,13 @@ configure() {
}

preremove() {
if systemctl list-units --full -all | grep -Fq 'rguard.service'; then
systemctl disable --now rguard
if is-active rguard.service; then
echo "Stopping rguard.service"
systemctl stop rguard.service
fi
if is-enabled rguard.service; then
echo "Disabling rguard.service"
systemctl disable rguard.service
fi
}

Expand Down

0 comments on commit 7820db0

Please sign in to comment.