Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNQub-0004Y6-MY for pgsql-admin@arkaria.postgresql.org; Fri, 08 Dec 2017 22:14:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNQua-0006Au-VZ for pgsql-admin@arkaria.postgresql.org; Fri, 08 Dec 2017 22:14:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eNQua-0006Ak-I3 for pgsql-admin@lists.postgresql.org; Fri, 08 Dec 2017 22:14:28 +0000 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eNQuX-000526-N5 for pgsql-admin@postgresql.org; Fri, 08 Dec 2017 22:14:26 +0000 Received: by mail-qt0-x22b.google.com with SMTP id g9so28647399qth.9 for ; Fri, 08 Dec 2017 14:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :to; bh=Zo6wcHau9cmZE4v1wSBYVN9UPtdNUug0aAiiYBPpRsA=; b=ru6J2Zu/l0Oh57R6rQs7bCQXoFISrlhhH4FxOkyWpvYhZ0rvskGEtC8PCoiH6Nh/E4 /i+ZmAjK0ggx2rKGXXfNHU8HqoTXTlKjGaHVqYa2NQn5Aj4d2DnqOZfRKabD3krDhhlM z110zgfWxFkfHJcdCn2rVbozlZXNDB0s9JUTa9r+U90+55kVUGk8VEIs9HJiihxukiXT PTBw/H1R35//bQCwOmRgtW811WjCPpqmeB5TCqMRodCoaCLGIzN2AAtHmbbhMJy5HjxU XK5Bozd4I/sBdSonHKab20n+qYncRGqbUzBtssAbYn/SEQAHSgKWiApYjNypFJoxWLQN N6mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:to; bh=Zo6wcHau9cmZE4v1wSBYVN9UPtdNUug0aAiiYBPpRsA=; b=oL+Wf6GKYa76ejiS7edb37lkQ1DKkqS9YdSwu1v/8oZkMtkKk+ObVXF6FN3XWt4yse YHHk5lJQhtPVuIrNc9qHLYOAJMAvEpbO9/HzQWubzGyABj5Zq9kmQd9EejRzrKklCtX3 +uvBUIZ7phTT7hwyw6ZwPhqrlFev9nWhwwRJeK+QppGzNlZKvqxoREuzVdTm+F44ODW5 sL+cJxa8pKFywPgsy6QTr482D1tpxlL34L8qTpgOblPtWsAtn4or+fN9D36wYYKTojCx c19CESzVjKovtQzHCuqeCF3to3hER70ROtYkXo2MlgHtLDaNmc3lFqZR/TpjovuOHOUy ITSA== X-Gm-Message-State: AKGB3mKHFUvIEPi5t8xt8Gq2FT91T4fqtODhElNgPHQp3vaKIiGlLlxq Mq0yg0VgoSXngqASlFtzhfa0SKML X-Google-Smtp-Source: AGs4zMYR46zCEBnWfUTLhW2EDLPwqSgHO8SdVB0Q0JtvsVlgHzLUI1bhQ9ow/leTW9wLNxLbtjdirA== X-Received: by 10.237.53.2 with SMTP id a2mr17005686qte.5.1512771264266; Fri, 08 Dec 2017 14:14:24 -0800 (PST) Received: from [192.168.1.152] (pool-71-179-177-60.bltmmd.fios.verizon.net. [71.179.177.60]) by smtp.gmail.com with ESMTPSA id f184sm572838qke.40.2017.12.08.14.14.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Dec 2017 14:14:23 -0800 (PST) From: John Scalia Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Fri, 8 Dec 2017 17:14:23 -0500 Subject: Option to make PostgreSQL quiescent on startup? Message-Id: <021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com> To: pgsql-admin@postgresql.org X-Mailer: iPad Mail (15B202) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi all, I have been trying to get a new Docker container working with PostgreSQL 9.6= .6 and I=E2=80=99d like it to start with one of our app=E2=80=99s schemas, b= ut the shell script I=E2=80=99m invoking at the end of the Dockerfile with a= n ENTRYPOINT doesn=E2=80=99t seem to want to go past the database startup. I= think the script isn=E2=80=99t completing due to the output of postgres pro= cess. At least, this is my suspicion. Right now, the shell script is only tr= ying to invoke psql -c =E2=80=9CCREATE DATABASE code=E2=80=9D after it star= ts the cluster. If this is the case, is there any option to just quietly sta= rt the cluster? If not, is there anyway to make this work? =E2=80=94 Jay Sent from my iPad=