aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/report_ops@.service
blob: 5e048e72f764e84637b235396469b72a8cc8f903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Run scripts from the report_ops folder
OnFailure=monitor@%n

[Service]
Type=simple
DynamicUser=Yes
ExecStart=/usr/bin/python -m report_ops -%i
EnvironmentFile=/etc/serenitas.conf
Environment=PGPASS=%d/serenitas_pgpass
Environment=PYTHONPATH=/home/guillaume/projects/code/python
LoadCredential=serenitas:/etc/credstore
ReadWritePaths=/home/serenitas/Daily
TimeoutSec=300