blob: d7e39594987234432b348f2e201f67118f14b0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[Unit]
Description=Run Redis tasks
After=network.target
[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/code
Environment='R_LIBS_USER=/home/guillaume/R/\x25p-library/\x25v'
Environment=PGPASSFILE=/home/guillaume/.pgpass
Restart=always
RestartSec=3
[Install]
WantedBy=default.target
|