aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/book_bbg.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/book_bbg.service b/scripts/book_bbg.service
index 88a1bbad..7439a800 100644
--- a/scripts/book_bbg.service
+++ b/scripts/book_bbg.service
@@ -1,5 +1,6 @@
[Unit]
Description=Autobook bond and cds trades from bloomberg sftp
+After=network.target postgresql.service
[Service]
Type=simple
@@ -8,3 +9,6 @@ Group=guillaume
ExecStart=/usr/bin/python book_bbg.py
WorkingDirectory=/home/guillaume/projects/code/python
EnvironmentFile=/etc/serenitas.conf
+
+[Install]
+WantedBy=default.target