From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fiona Klute via buildroot <buildroot@buildroot.org>
Cc: Fiona Klute <fiona.klute@gmx.de>,
Christian Stewart <christian@aperture.us>
Subject: Re: [Buildroot] [PATCH 1/2] package/docker-engine: rewrite dockerd init script
Date: Mon, 29 Jul 2024 22:50:40 +0200 [thread overview]
Message-ID: <20240729225040.6431a398@windsurf> (raw)
In-Reply-To: <20240729122011.1112914-1-fiona.klute@gmx.de>
Hello Fiona,
Thanks for working on this. One question below.
On Mon, 29 Jul 2024 14:20:10 +0200
Fiona Klute via buildroot <buildroot@buildroot.org> wrote:
> +start() {
> + printf 'Starting %s: ' "$DAEMON"
> + # shellcheck disable=SC2086 # we need word splitting for DOCKERD_ARGS
> + start-stop-daemon --start --background --pidfile "$PIDFILE" \
> + --exec "/usr/bin/$DAEMON" \
> + -- --pidfile "$PIDFILE" $DOCKERD_ARGS
> + # We have to use --background because dockerd doesn't
> + # daemonize on its own. Unfortunately that means
> + # start-stop-daemon cannot check the return status, so at
> + # least check the process is actually running.
How is this different than the other init scripts for which we use
--background?
package/at/S99at
package/busybox/S01syslogd (which was recently reworked)
package/busybox/S41ifplugd (same)
package/busybox/S50crond (same)
While would need the while loop waiting for the daemon to actually be
started in the docker-engine init script and not the other services?
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-29 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 12:20 [Buildroot] [PATCH 1/2] package/docker-engine: rewrite dockerd init script Fiona Klute via buildroot
2024-07-29 12:20 ` [Buildroot] [RFC PATCH 2/2] package/docker-engine: add wrapper script for logging to syslog Fiona Klute via buildroot
2024-07-29 20:50 ` Thomas Petazzoni via buildroot [this message]
2024-07-30 15:33 ` [Buildroot] [PATCH 1/2] package/docker-engine: rewrite dockerd init script Fiona Klute via buildroot
2024-07-30 15:50 ` Thomas Petazzoni via buildroot
2024-07-31 17:51 ` Fiona Klute via buildroot
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=20240729225040.6431a398@windsurf \
--to=buildroot@buildroot.org \
--cc=christian@aperture.us \
--cc=fiona.klute@gmx.de \
--cc=thomas.petazzoni@bootlin.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.