aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/margin_estimates.service
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/margin_estimates.service')
-rw-r--r--scripts/margin_estimates.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/margin_estimates.service b/scripts/margin_estimates.service
new file mode 100644
index 00000000..d2ee3069
--- /dev/null
+++ b/scripts/margin_estimates.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Email an margin estimate and run the morning collateral file
+
+[Service]
+Type=oneshot
+User=flint
+Group=flint
+ExecStart=/usr/bin/python -m collateral -d
+ExecStart=/usr/bin/python margin_estimates.py
+WorkingDirectory=/home/guillaume/projects/code/python
+EnvironmentFile=/etc/serenitas.conf
+Environment=PYTHONPATH=/home/guillaume/projects/code/python