Skip to content

Commit

Permalink
Merge pull request #31 from brainexe/master
Browse files Browse the repository at this point in the history
packaging: don't fail if systemd is not ready
  • Loading branch information
Felixoid authored Feb 7, 2025
2 parents f4d3a0e + 11a5b18 commit 22c3168
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packaging/prerm
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh

systemctl disable grafsy.service
systemctl stop grafsy.service
if [ -x /bin/systemctl ] && [ -d /run/systemd/system ]; then
systemctl stop grafsy.service || true
systemctl disable grafsy.service || true
else
echo "Systemd not detected, skipping service stop/disable."
fi

0 comments on commit 22c3168

Please sign in to comment.