aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/baml_cash.timer9
-rw-r--r--scripts/bowdst.timer9
-rw-r--r--scripts/python_dir@.service11
3 files changed, 29 insertions, 0 deletions
diff --git a/scripts/baml_cash.timer b/scripts/baml_cash.timer
new file mode 100644
index 00000000..3f1a091a
--- /dev/null
+++ b/scripts/baml_cash.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Download and load cash balances for baml reporting
+[Timer]
+OnCalendar=Mon..Fri 7:30
+Unit=python_dir@baml.service
+RandomizedDelaySec=1m
+
+[Install]
+WantedBy=timers.target
diff --git a/scripts/bowdst.timer b/scripts/bowdst.timer
new file mode 100644
index 00000000..08af906d
--- /dev/null
+++ b/scripts/bowdst.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Load Bowdst cash balances and email positions to HM
+[Timer]
+OnCalendar=Mon..Fri 7:30
+Unit=python_dir@bowdst.service
+RandomizedDelaySec=1m
+
+[Install]
+WantedBy=timers.target
diff --git a/scripts/python_dir@.service b/scripts/python_dir@.service
new file mode 100644
index 00000000..c37b0b99
--- /dev/null
+++ b/scripts/python_dir@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Call base python projects directory
+
+[Service]
+Type=simple
+User=guillaume
+Group=guillaume
+ExecStart=/usr/bin/python %i.py
+WorkingDirectory=/home/guillaume/projects/code/python
+EnvironmentFile=/etc/serenitas.conf
+Environment=PYTHONPATH=/home/guillaume/projects/code/python