We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4d3a0e commit 11a5b18Copy full SHA for 11a5b18
packaging/prerm
@@ -1,4 +1,9 @@
1
#!/bin/sh
2
3
-systemctl disable grafsy.service
4
-systemctl stop grafsy.service
+if [ -x /bin/systemctl ] && [ -d /run/systemd/system ]; then
+ systemctl stop grafsy.service || true
5
+ systemctl disable grafsy.service || true
6
+else
7
+ echo "Systemd not detected, skipping service stop/disable."
8
+fi
9
+
0 commit comments