All of lore.kernel.org
 help / color / mirror / Atom feed
* docker: fix init script for busybox
@ 2020-02-22  8:54 Phil Coval
  2020-02-27 21:57 ` [meta-virtualization] " Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Coval @ 2020-02-22  8:54 UTC (permalink / raw)
  To: meta-virtualization
  Cc: philippe.coval.pro+meta-virtualization-lists.yoctoproject.org,
	bruce.ashfield, Philippe Coval

Observed issue using BusyBox v1.30.1 not supporting bashism

/etc/init.d/docker.init: line 43: syntax error: unexpected redirection

Change-Id: I9f73564cfb56352fbf7d80723ea938b66eceb5c7
Forwarded: https://lists.yoctoproject.org/g/meta-virtualization
Signed-off-by: Philippe Coval <rzr@users.sf.net>
---
 recipes-containers/docker/files/docker.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-containers/docker/files/docker.init b/recipes-containers/docker/files/docker.init
index b37ddc9..24f8fea 100644
--- a/recipes-containers/docker/files/docker.init
+++ b/recipes-containers/docker/files/docker.init
@@ -40,7 +40,7 @@ start() {
     if ! [ -f $pidfile ]; then
         printf "Starting $prog:\t"
         echo -e "\n$(date)\n" >> $logfile
-        "$unshare" -m -- $exec $other_args &>> $logfile &
+        "$unshare" -m -- $exec $other_args >> $logfile 2>&1 &
         pid=$!
         touch $lockfile
         # wait up to 10 seconds for the pidfile to exist.  see
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-27 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-22  8:54 docker: fix init script for busybox Phil Coval
2020-02-27 21:57 ` [meta-virtualization] " Bruce Ashfield

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.