aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/markit@.service12
-rw-r--r--scripts/markit_cds.timer10
-rw-r--r--scripts/markit_loans.timer10
-rw-r--r--scripts/markit_rates.timer10
4 files changed, 42 insertions, 0 deletions
diff --git a/scripts/markit@.service b/scripts/markit@.service
new file mode 100644
index 00000000..3047e816
--- /dev/null
+++ b/scripts/markit@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Run scripts from the markit folder
+OnFailure=%n
+
+[Service]
+Type=simple
+User=guillaume
+Group=guillaume
+ExecStart=/usr/bin/python markit.py --%i
+WorkingDirectory=/home/guillaume/projects/code/python
+EnvironmentFile=/etc/serenitas.conf
+Environment=PYTHONPATH=/home/guillaume/projects/code/python
diff --git a/scripts/markit_cds.timer b/scripts/markit_cds.timer
new file mode 100644
index 00000000..d3fd4148
--- /dev/null
+++ b/scripts/markit_cds.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Download cds data and save in db
+
+[Timer]
+OnCalendar=Mon..Fri 7:00
+Unit=markit@cds.service
+RandomizedDelaySec=1m
+
+[Install]
+WantedBy=timers.target
diff --git a/scripts/markit_loans.timer b/scripts/markit_loans.timer
new file mode 100644
index 00000000..7265e6d0
--- /dev/null
+++ b/scripts/markit_loans.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Download loans data and save in db
+
+[Timer]
+OnCalendar=Mon..Fri 6:40
+Unit=markit@loans.service
+RandomizedDelaySec=1m
+
+[Install]
+WantedBy=timers.target
diff --git a/scripts/markit_rates.timer b/scripts/markit_rates.timer
new file mode 100644
index 00000000..651a4813
--- /dev/null
+++ b/scripts/markit_rates.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Download rates data and save in db
+
+[Timer]
+OnCalendar=Mon..Fri 22:15
+Unit=markit@rates.service
+RandomizedDelaySec=1m
+
+[Install]
+WantedBy=timers.target