Skip to content

Commit

Permalink
Updated service files
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy committed Jun 17, 2024
1 parent d6e0df1 commit e752871
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
5 changes: 4 additions & 1 deletion kcapp-announcer.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions kcapp-api.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Description=kcapp-api-service
After=network.target

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
User=root
Expand Down
3 changes: 3 additions & 0 deletions kcapp-frontend.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Description=kcapp-frontend-service
After=network.target

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
User=root
Expand Down
12 changes: 12 additions & 0 deletions kcapp-odds-api.service
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions kcapp-odds-sio-updater.service
Original file line number Diff line number Diff line change
@@ -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
8 changes: 5 additions & 3 deletions kcapp-req.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -25,15 +24,18 @@ declare -a PAGES=("/"
"/tournaments/1"
"/elo"
"/offices"
"tournaments/admin"
"/tournaments/admin"
"/matches/1/result"
"/legs/1"
"/legs/1/result"
"/matches/page/1"
"/tournaments/1/player/1"
"/tournaments/admin"
"/players/compare"
"/controller")
"/controller"
"/badges"
"/badges/1"
"/practice")

for PAGE in "${PAGES[@]}"; do
printf "Requesting %-25s" $PAGE
Expand Down

0 comments on commit e752871

Please sign in to comment.