chg: [vagrant] forward default output of systemd to /dev/null

pull/316/head
Cédric Bonhomme 2020-07-07 23:15:24 +02:00
parent 9698735042
commit c998326768
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 9 additions and 5 deletions

View File

@ -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"