summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_uninstall.sh
diff options
context:
space:
mode:
authorOpenGnsys <OpenGnsys@opengnsys.com>2021-02-15 11:20:37 +0000
committerOpenGnsys <OpenGnsys@opengnsys.com>2021-02-15 11:20:37 +0000
commita1080113e3ef3fc91c9aae2ce4298e2161b77bad (patch)
tree1e38c5739547eedf01b24f8034f80e6c0876b700 /installer/opengnsys_uninstall.sh
parentcdcbc9332d0494daf58ffc2de9935a60bd129542 (diff)
#1028 opengnsys_uninstall.sh remove ogserver service.
Diffstat (limited to 'installer/opengnsys_uninstall.sh')
-rwxr-xr-xinstaller/opengnsys_uninstall.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/installer/opengnsys_uninstall.sh b/installer/opengnsys_uninstall.sh
index e0df8f8a..e1d7cc15 100755
--- a/installer/opengnsys_uninstall.sh
+++ b/installer/opengnsys_uninstall.sh
@@ -66,6 +66,14 @@ if [ -x /etc/init.d/opengnsys ]; then
chkconfig --del opengnsys
fi
fi
+
+#Parar ogserver
+if [ -r /lib/systemd/system/ogserver.service ]; then
+ systemctl stop ogserver
+ systemctl disable ogserver
+ rm /lib/systemd/system/ogserver.service
+fi
+
# Comprobar acceso a la bases de datos.
echo "Erasing OpenGnsys database."
DROP=1