summaryrefslogtreecommitdiff
path: root/buildscripts/build/chessh.service
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 15:59:33 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 15:59:33 -0700
commit387ac72d1bdf44f882f3f1ae23b9415884234cbe (patch)
tree11d484f5b7fabddc6bae9af67f0174d5f3ff0b01 /buildscripts/build/chessh.service
parente3604eaeb8bbabb48418db45fd7611722428ae2e (diff)
downloadchessh-387ac72d1bdf44f882f3f1ae23b9415884234cbe.tar.gz
chessh-387ac72d1bdf44f882f3f1ae23b9415884234cbe.zip
Distributed build tasks!!
Diffstat (limited to 'buildscripts/build/chessh.service')
-rw-r--r--buildscripts/build/chessh.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/buildscripts/build/chessh.service b/buildscripts/build/chessh.service
new file mode 100644
index 0000000..3281fcc
--- /dev/null
+++ b/buildscripts/build/chessh.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=CheSSH Server
+After=docker.service
+BindsTo=docker.service
+ReloadPropagatedFrom=docker.service
+WantedBy=default.target
+
+[Service]
+Restart=always
+ExecStartPre=-/usr/bin/docker stop chessh-server
+ExecStartPre=-/usr/bin/docker rm chessh-server
+ExecStart=/usr/bin/docker run \
+ --env-file $BUILD_ENV \
+ --network=host \
+ --name chessh-server \
+ chessh/server
+
+[Install]
+WantedBy=multi-user.target