Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] postgresql: init script: wait till server has started
Date: Fri, 10 Jul 2015 23:54:47 +0200	[thread overview]
Message-ID: <20150710215447.GA5469@free.fr> (raw)
In-Reply-To: <1432574426-17098-2-git-send-email-bos@je-eigen-domein.nl>

Floris, All,

On 2015-05-25 19:20 +0200, Floris Bos spake thusly:
> Adds "-w" option to init script to wait till the database server
> has fully started and accepts connections before continuing.
> 
> Prevents other applications that depend on PostgreSQL from
> failing to start, if the database server is not ready yet.
> Times out after 60 seconds by default.
> 
> Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/postgresql/S50postgresql | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/postgresql/S50postgresql b/package/postgresql/S50postgresql
> index 86a8d83..a895bcf 100644
> --- a/package/postgresql/S50postgresql
> +++ b/package/postgresql/S50postgresql
> @@ -13,7 +13,7 @@ fi
>  
>  start() {
>  	echo -n "Starting postgresql: "
> -	su - postgres -c '/usr/bin/pg_ctl start -D /var/lib/pgsql -l logfile'
> +	su - postgres -c '/usr/bin/pg_ctl start -w -D /var/lib/pgsql -l logfile'
>  	echo "OK"
>  }
>  stop() {
> -- 
> 2.1.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2015-07-10 21:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 17:20 [Buildroot] [PATCH] openssl: always install openssl.cnf Floris Bos
2015-05-25 17:20 ` [Buildroot] [PATCH] postgresql: init script: wait till server has started Floris Bos
2015-07-10 21:54   ` Yann E. MORIN [this message]
2015-07-11  7:27   ` Thomas Petazzoni
2015-07-10 16:08 ` [Buildroot] [PATCH] openssl: always install openssl.cnf Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150710215447.GA5469@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox