mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-07-11 06:14:34 +00:00
Setup the parser container to stay alive and run on a cron
This commit is contained in:
parent
c6b68029bf
commit
9ced864a48
3 changed files with 22 additions and 19 deletions
9
app/t2-stat-parser/parser-daemon.sh
Executable file
9
app/t2-stat-parser/parser-daemon.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "T2 Stat Parser Running...";
|
||||
|
||||
# Run this initially, then we'll execute this on a schedule
|
||||
./start.sh
|
||||
|
||||
# Keep container running
|
||||
tail -f /dev/null
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "starting..";
|
||||
|
||||
echo "Checking if build exists.."
|
||||
if [ -f /app/main ]
|
||||
then
|
||||
|
|
@ -11,5 +9,3 @@ else
|
|||
echo "No build found, running from source"
|
||||
go run *.go
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue