LSB init scripts and NETWORKING=no && exit 0
Ville Skyttä
ville.skytta at iki.fi
Sun Jul 8 14:04:08 UTC 2007
One more question related to LSB init scripts:
A commonly found current approach in init scripts for services that require
networking to be up is:
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0
Silently exiting with 0 no matter which action was requested does not look
like something expected of LSB compliant init scripts.
Actually, all of 1) silent exit and 2) the zero exit value and 3) the way "is
networking up?" is checked seem questionable to me. Anyone have ideas for
better approaches to this?
More information about the fedora-devel-list
mailing list