mirror of https://gitee.com/bigwinds/arangodb
fix debian prerm script (#4673)
This commit is contained in:
parent
6df7bf460a
commit
abde907eae
|
@ -7,6 +7,8 @@ if [ -x "/etc/init.d/arangodb3" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /run/systemd/system ] ; then
|
if [ -d /run/systemd/system ] ; then
|
||||||
deb-systemd-invoke stop @CPACK_PACKAGE_NAME@.service >/dev/null
|
if systemctl list-unit-files | grep -q @CPACK_PACKAGE_NAME@.service ; then
|
||||||
|
deb-systemd-invoke stop @CPACK_PACKAGE_NAME@.service
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# End automatically added section
|
# End automatically added section
|
||||||
|
|
Loading…
Reference in New Issue