From: garciadeblas Date: Mon, 24 Apr 2017 10:32:40 +0000 (+0200) Subject: Updated install-openmano-service to use the new config and service files X-Git-Tag: v2.0.0~9 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F1657%2F1;p=osm%2FRO.git Updated install-openmano-service to use the new config and service files Change-Id: Ia23f36a189046d4ce297b5b0e6c5fad34ece2a6f Signed-off-by: garciadeblas --- diff --git a/scripts/install-openmano-service.sh b/scripts/install-openmano-service.sh index cc8e9986..707df04a 100755 --- a/scripts/install-openmano-service.sh +++ b/scripts/install-openmano-service.sh @@ -37,8 +37,10 @@ function usage(){ function uninstall(){ echo "systemctl disable openmano.service " && systemctl disable openmano.service 2>/dev/null || echo " Already done" + echo "systemctl disable openmano.service " && systemctl disable osm-ro.service 2>/dev/null || echo " Already done" echo "service openmano stop " && service openmano stop 2>/dev/null || echo " Already done" - for file in /opt/openmano /etc/default/openmanod.cfg /etc/osm/openmanod.cfg /var/log/openmano /var/log/osm/openmano* /etc/systemd/system/openmano.service /usr/bin/openmano /usr/sbin/service-openmano /usr/bin/openmano-report + echo "service osm-ro stop " && service openmano stop 2>/dev/null || echo " Already done" + for file in /opt/openmano /etc/default/openmanod.cfg /etc/osm/openmanod.cfg /var/log/openmano /var/log/osm/openmano* /etc/systemd/system/openmano.service /etc/systemd/system/osm-ro.service /usr/bin/openmano /usr/sbin/service-openmano /usr/bin/openmano-report do echo rm $file rm -rf $file || ! echo "Can not delete '$file'. Needed root privileges?" >&2 || exit 1 @@ -139,7 +141,7 @@ ln -s -v /opt/openmano/scripts/openmano-report.sh /usr/bin/openmano-report chown -R $SUDO_USER /opt/openmano mkdir -p /etc/systemd/system/ -cat > /etc/systemd/system/openmano.service << EOF +cat > /etc/systemd/system/osm-ro.service << EOF [Unit] Description=openmano server @@ -154,8 +156,8 @@ EOF [[ -n $DELETE ]] && rm -rf ${FILE} -service openmano start -systemctl enable openmano.service +service osm-ro start +systemctl enable osm-ro.service echo Done exit