On Mon, 13 May 2019, Dmitry Bogatov wrote:

> @@ -65,5 +65,3 @@ case "$1" in
>       exit 3
>       ;;
>  esac
> -
> -:

I think this is not advisable. What this will do is
cause the last errorlevel to be returned by the script,
which may not be an error but simply the result of a
test command.

Initscripts explicitly call the exit built-in utility
in case of errors and must not use 'set -e', but even
so, this may break some legit uses.

Furthermore, not erroring out seems to be the proper
fallback case for initscripts because doing otherwise
may cause the system to not boot, which is the greater
evil.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

**********

Mit der tarent Academy bieten wir auch Trainings und Schulungen in den
Bereichen Softwareentwicklung, Agiles Arbeiten und Zukunftstechnologien an.

Besuchen Sie uns auf www.tarent.de/academy. Wir freuen uns auf Ihren Kontakt.

**********

Reply via email to