diff options
Diffstat (limited to 'pkg/scripts/preremove.sh')
| -rw-r--r-- | pkg/scripts/preremove.sh | 13 | +13 −0 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/scripts/preremove.sh b/pkg/scripts/preremove.sh new file mode 100644 --- /dev/null +++ b/pkg/scripts/preremove.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# Copyright (c) 2026 Nikolay Govorov +# SPDX-License-Identifier: AGPL-3.0-or-later + +set -e + +if [ -x "/bin/systemctl" ] && [ -d /run/systemd/system ]; then + /bin/systemctl stop mirum-server.service || true + /bin/systemctl disable mirum-server.service || true + + /bin/systemctl stop 'mirum-worker@*' || true + /bin/systemctl disable mirum-worker@.service || true +fi |
