[bootlin/training-materials updates] master: Boot time: minor init improvements (d0cb8a09)

Michael Opdenacker michael.opdenacker at bootlin.com
Fri Oct 22 16:31:35 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/d0cb8a09b428a5f1f4620a830e88ede38b3ddca5

>---------------------------------------------------------------

commit d0cb8a09b428a5f1f4620a830e88ede38b3ddca5
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Fri Oct 22 16:31:35 2021 +0200

    Boot time: minor init improvements
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

d0cb8a09b428a5f1f4620a830e88ede38b3ddca5
 slides/boot-time-init-scripts/boot-time-init-scripts.tex | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/slides/boot-time-init-scripts/boot-time-init-scripts.tex b/slides/boot-time-init-scripts/boot-time-init-scripts.tex
index 4b667292..9847bf6b 100644
--- a/slides/boot-time-init-scripts/boot-time-init-scripts.tex
+++ b/slides/boot-time-init-scripts/boot-time-init-scripts.tex
@@ -97,9 +97,11 @@ Goal to start your application as soon as possible after all the dependencies ar
 	\item \code{init} scripts run in alphanumeric order and start with
 	      a letter (K for stop ({\bf k}ill) and S for {\bf s}tart).
 	\item You want to use the lowest number you can for your application.
-	\item You can even replace \code{init} with your application!
+	\item You can even replace \code{init} with your application!\\
+	      However, that's easier to keep a standard \code{init}, which also
+	      acts as a universal parent to orphan processes (otherwise
+	      you get zombies), and also takes care of implementing system shutdown.
 \end{itemize}
-How fast would we be if we could be the first started application?
 \end{frame}
 
 \begin{frame}[fragile]
@@ -109,7 +111,9 @@ How fast would we be if we could be the first started application?
 	      script (e.g. \code{/etc/init.d/rcS}). This eliminates multiple
 	      calls to \code{/bin/sh}.
 	\item An easier to maintain solution allowing to keep subscripts: \code{source} them\\
-              (\code{.} command) if possible. This won't spawn new shell processes.
+              (\code{.} command) if possible. This won't spawn new shell
+              processes. Buildroot's \code{/etc/init.d/rcS} file already
+              does this with \code{.sh} files.
 	\item You could mount your filesystems directly in the C code
 	      of your application:
 \end{itemize}




More information about the training-materials-updates mailing list