diff --git a/src/freedombone-utils-mongodb b/src/freedombone-utils-mongodb index 3ad23153..cbc648bc 100755 --- a/src/freedombone-utils-mongodb +++ b/src/freedombone-utils-mongodb @@ -116,6 +116,10 @@ function remove_mongodb { if [ -d /var/lib/mongodb ]; then rm -rf /var/lib/mongodb fi + if [ -f /etc/systemd/system/mongodb.service ]; then + rm /etc/systemd/system/mongodb.service + systemctl daemon-reload + fi fi }