From afd07591bd29d89df0ec764f785aa9a45b4ad043 Mon Sep 17 00:00:00 2001 From: William Yang Date: Tue, 7 Dec 2021 13:27:46 +0100 Subject: [PATCH] build(deb): fix postrm for checking systemd --- deploy/packages/deb/debian/postrm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/packages/deb/debian/postrm b/deploy/packages/deb/debian/postrm index affb2f4cc..5df55135a 100755 --- a/deploy/packages/deb/debian/postrm +++ b/deploy/packages/deb/debian/postrm @@ -56,7 +56,7 @@ case "$1" in rm -r /usr/lib/emqx fi - if pidof systemd; then + if systemctl status --no-pager; then systemctl disable emqx; rm -f /etc/systemd/emqx.service fi