blob: 606ff577871373fd6e1481e446ca98fd3ff41c7d (
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/serenitas/CorpCDOs/data
Environment=LOG_DIR=/home/serenitas/CorpCDOs/logs
Environment=CODE_DIR=/home/guillaume/projects/code
Environment='R_LIBS_USER=/home/guillaume/R/\x25p-library/\x25v'
Environment=PGPASSFILE=/home/guillaume/.pgpass
Restart=always
RestartSec=3
[Install]
WantedBy=default.target
|