aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/task-runner.service
blob: 27b590cd9278ec45e6a3781b0aff44f74eaf621f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Run Redis tasks
After=network.target
OnFailure=monitor@%n
[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
EnvironmentFile=/etc/serenitas.conf
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