summaryrefslogtreecommitdiff
path: root/vainsocial-compiler.service
diff options
context:
space:
mode:
Diffstat (limited to 'vainsocial-compiler.service')
-rw-r--r--vainsocial-compiler.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/vainsocial-compiler.service b/vainsocial-compiler.service
new file mode 100644
index 0000000..f7110a7
--- /dev/null
+++ b/vainsocial-compiler.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Vainsocial compiler service
+After=network.target
+
+[Service]
+Type=simple
+User=vainsocial
+ExecStart=/vainsocial/statscompiler/venv/bin/python /vainsocial/statscompiler/api.py
+Restart=on-failure
+EnvironmentFile=/vainsocial/config.env
+
+[Install]
+WantedBy=multi-user.target