blob: 5f1ee9112fbee03309c79b83c07d36ec54310b40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
[Unit]
Description=Run Redis tasks
After=network.target
[Service]
SyslogIdentifier=task-runner
Type=notify
ExecStart=/usr/bin/python -u /home/guillaume/projects/code/python/task_runner.py
WorkingDirectory=/home/guillaume/projects/code/python
Environment=DATA_DIR=/home/serenitas/CorpCDOs/data
Environment=LOG_DIR=/home/serenitas/CorpCDOs/logs
Environment=CODE_DIR=/home/guillaume/projects/code
Environment=BASE_DIR=/home/serenitas/CorpCDOs
Environment=OMP_NUM_THREADS=4
Environment='R_LIBS_USER=/home/guillaume/R/%%p-library/%%v'
Environment=PGPASSFILE=/home/guillaume/.pgpass
Environment=REDIS_HOST=ziggy
Restart=always
RestartSec=3
[Install]
WantedBy=default.target
|