소스 검색

build(deb): fix postrm for checking systemd

William Yang 4 년 전
부모
커밋
afd07591bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      deploy/packages/deb/debian/postrm

+ 1 - 1
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