From a91be740fa4659deee3534cd1747e086c5a89aa8 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 13 Nov 2019 11:02:59 +0800 Subject: [PATCH] Use systemctl in update script --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 9221a39..c7335b1 100755 --- a/update.sh +++ b/update.sh @@ -23,7 +23,7 @@ docker-compose -f $DIRNAME/docker-compose.yml pull echo -e "${CYAN}[${SCRIPT}] Stop the containers${NC}" -service loki-server stop +systemctl stop loki-server # ----------------------------------------------------------------------------- # Start the containers. @@ -31,7 +31,7 @@ service loki-server stop echo -e "${CYAN}[${SCRIPT}] Start the containers${NC}" -service loki-server start +systemctl start loki-server # ----------------------------------------------------------------------------- # Remove untagged images.