Merge pull request #6390 from qzhuyan/fix/william/systemd-restart-on-failure

build(deb): fix postrm for checking systemd
This commit is contained in:
William Yang 2021-12-07 14:41:30 +01:00 committed by GitHub
commit 3fdc075b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ case "$1" in
rm -r /usr/lib/emqx rm -r /usr/lib/emqx
fi fi
if pidof systemd; then if systemctl status --no-pager; then
systemctl disable emqx; systemctl disable emqx;
rm -f /etc/systemd/emqx.service rm -f /etc/systemd/emqx.service
fi fi