From c9983267682f21c387607d36e1cdee999fef6280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Tue, 7 Jul 2020 23:15:24 +0200 Subject: [PATCH] chg: [vagrant] forward default output of systemd to /dev/null --- vagrant/bootstrap.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh index 53e7c94..cafda51 100644 --- a/vagrant/bootstrap.sh +++ b/vagrant/bootstrap.sh @@ -1,5 +1,9 @@ #! /usr/bin/env bash +RED='\033[0;31m' +GREEN='\033[0;32m' +NC='\033[0m' # No Color + PATH_TO_MONARC='/home/vagrant/monarc' PATH_TO_STATS_SERVICE='/home/vagrant/stats-service' @@ -364,13 +368,13 @@ Restart=always WantedBy=multi-user.target EOF" -sudo systemctl daemon-reload +sudo systemctl daemon-reload > /dev/null sleep 1 -sudo systemctl enable statsservice.service +sudo systemctl enable statsservice.service > /dev/null sleep 3 -sudo systemctl restart statsservice +sudo systemctl restart statsservice > /dev/null #systemctl status statsservice.service -echo -e "\n--- MONARC is ready and avalable at http://127.0.0.1:5001 ---\n" -echo -e "\n--- Stats service is ready and available at http://127.0.0.1:$STATS_PORT ---\n" +echo -e "MONARC is ready and avalable at http://127.0.0.1:5001" +echo -e "Stats service is ready and available at http://127.0.0.1:$STATS_PORT"