From e752871ed697b9d46de80c9ea77c5ad5831446a4 Mon Sep 17 00:00:00 2001 From: Thord Setsaas Date: Mon, 17 Jun 2024 08:44:35 +0200 Subject: [PATCH] Updated service files --- kcapp-announcer.service | 5 ++++- kcapp-api.service | 3 +++ kcapp-frontend.service | 3 +++ kcapp-odds-api.service | 12 ++++++++++++ kcapp-odds-sio-updater.service | 12 ++++++++++++ kcapp-req.sh | 8 +++++--- 6 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 kcapp-odds-api.service create mode 100644 kcapp-odds-sio-updater.service diff --git a/kcapp-announcer.service b/kcapp-announcer.service index 5e622a4..9a718d5 100644 --- a/kcapp-announcer.service +++ b/kcapp-announcer.service @@ -2,8 +2,11 @@ Description=kcapp-announcer-service After=network.target +[Install] +WantedBy=multi-user.target + [Service] Type=simple User=root ExecStart=/usr/local/bin/kcapp-announcer -Restart=on-failure +Restart=on-failure \ No newline at end of file diff --git a/kcapp-api.service b/kcapp-api.service index e492ebd..798d2e9 100644 --- a/kcapp-api.service +++ b/kcapp-api.service @@ -2,6 +2,9 @@ Description=kcapp-api-service After=network.target +[Install] +WantedBy=multi-user.target + [Service] Type=simple User=root diff --git a/kcapp-frontend.service b/kcapp-frontend.service index cf6a36a..db64ee4 100644 --- a/kcapp-frontend.service +++ b/kcapp-frontend.service @@ -2,6 +2,9 @@ Description=kcapp-frontend-service After=network.target +[Install] +WantedBy=multi-user.target + [Service] Type=simple User=root diff --git a/kcapp-odds-api.service b/kcapp-odds-api.service new file mode 100644 index 0000000..12e0e04 --- /dev/null +++ b/kcapp-odds-api.service @@ -0,0 +1,12 @@ +[Unit] +Description=kcapp-odds-api-service +After=network.target + +[Install] +WantedBy=multi-user.target + +[Service] +Type=simple +User=root +ExecStart=/usr/local/bin/kcapp-odds-api /home/t.setsaas/go/src/github.com/kcapp/odds-api/config/config.yaml +Restart=on-failure \ No newline at end of file diff --git a/kcapp-odds-sio-updater.service b/kcapp-odds-sio-updater.service new file mode 100644 index 0000000..31343a2 --- /dev/null +++ b/kcapp-odds-sio-updater.service @@ -0,0 +1,12 @@ +[Unit] +Description=kcapp-odds-sio-updater-service +After=network.target + +[Install] +WantedBy=multi-user.target + +[Service] +Type=simple +User=root +ExecStart=/usr/local/bin/kcapp-odds-sio-updater +Restart=on-failure \ No newline at end of file diff --git a/kcapp-req.sh b/kcapp-req.sh index 5cf905a..b89076a 100755 --- a/kcapp-req.sh +++ b/kcapp-req.sh @@ -6,7 +6,6 @@ print_result() { echo -e " - \e[32mDONE\e[39m" else echo -e " - \e[91mFAILED\e[39m" - # TODO Mark deploy as failed, and log out in print_done + exit code fi } @@ -25,7 +24,7 @@ declare -a PAGES=("/" "/tournaments/1" "/elo" "/offices" - "tournaments/admin" + "/tournaments/admin" "/matches/1/result" "/legs/1" "/legs/1/result" @@ -33,7 +32,10 @@ declare -a PAGES=("/" "/tournaments/1/player/1" "/tournaments/admin" "/players/compare" - "/controller") + "/controller" + "/badges" + "/badges/1" + "/practice") for PAGE in "${PAGES[@]}"; do printf "Requesting %-25s" $PAGE