From 75154338dbd33331730100ccba170217b38cce25 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sat, 31 Oct 2015 10:32:50 -0700 Subject: [PATCH] bad sleep upstart hack so that postgres has a chance to start before transmet --- transmet.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/transmet.conf b/transmet.conf index 95ec4d7..dbfa185 100644 --- a/transmet.conf +++ b/transmet.conf @@ -7,6 +7,7 @@ author "Dan Ballard" start on (net-device-up and local-filesystems + and net-device-up IFACE!=lo and runlevel [2345]) stop on (runlevel [016]) @@ -14,4 +15,9 @@ chdir /opt/go/src/github.com/dballard/transmet respawn -exec /opt/go/bin/transmet --env prod +script + # sleeps are hack so that durring boot non upstart enabled postgres has a chance to turn on + sleep 2 + exec /opt/go/bin/transmet --env prod + sleep 2 +end script