aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/allocate_bonds.service10
-rw-r--r--scripts/allocate_bonds.timer9
2 files changed, 19 insertions, 0 deletions
diff --git a/scripts/allocate_bonds.service b/scripts/allocate_bonds.service
new file mode 100644
index 00000000..8936b127
--- /dev/null
+++ b/scripts/allocate_bonds.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Notify counterparties
+
+[Service]
+Type=simple
+User=flint
+Group=flint
+ExecStart=/usr/bin/python bondallocation_email.py
+WorkingDirectory=/home/guillaume/projects/code/python
+EnvironmentFile=/etc/serenitas.conf
diff --git a/scripts/allocate_bonds.timer b/scripts/allocate_bonds.timer
new file mode 100644
index 00000000..a7341340
--- /dev/null
+++ b/scripts/allocate_bonds.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run bondallocation script every hour from 8 am to 7pm.
+[Timer]
+OnCalendar=Mon..Fri 8..19:0:0
+Unit=allocate_bonds.service
+RandomizedDelaySec=1m
+
+[Install]
+WantedBy=timers.target