does openrc use the system shell? 05 December 2024, 02:05:26 Currently learning openrc.It looks like it uses openrc-run and only the posix subset of shell.I'm not an expert in the C programming language. Forgive me for my ignorance.But does openrc use the system shell under the hood?If /bin/sh is symlinked to Dash (the debian almquist shell) instead of bash, does openrc now use dash instead?Dash is 4x faster than bash and Zsh.
Re: does openrc use the system shell? Reply #1 – 05 December 2024, 08:00:54 Yes, OpenRC does use /bin/sh:QuoteService scripts are shell scripts. OpenRC aims at using only the standardized POSIX sh subset for portability reasons. The default interpreter (build-time toggle) is /bin/sh, so using for example mksh is not a problem.And yes, linking /bin/sh to dash speeds up boot/shutdown! I actually ran a benchmark of different init systems a while ago, including parallel startup and using dash for OpenRC (dash alone speeds up boot by about 2.5 seconds) 1 Likes