aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/task-runner.service
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/task-runner.service')
-rw-r--r--scripts/task-runner.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/task-runner.service b/scripts/task-runner.service
new file mode 100644
index 00000000..3a44447d
--- /dev/null
+++ b/scripts/task-runner.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Run Redis tasks
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/python /home/guillaume/projects/code/python/task_runner.py
+WorkingDirectory=/home/guillaume/projects/code/python
+Environment=DATA_DIR=/home/share/CorpCDOs/data
+Environment=LOG_DIR=/home/share/CorpCDOs/logs
+Environment=CODE_DIR=/home/share/CorpCDOs
+Environment='R_LIBS_USER=/home/guillaume/R/\x25p-library/\x25v'
+Environment=PGPASSFILE=/home/guillaume/.pgpass
+
+[Install]
+WantedBy=default.target