Hide Forgot
The problem is here: if [ -z "${NOLOCALE:-}" ] && [ -z "${LANGSH_SOURCED:-}" ] && [ -f /etc/sysconfig/i18n ] ; then . /etc/profile.d/lang.sh 2>/dev/null # avoid propagating LANGSH_SOURCED any further unset LANGSH_SOURCED fi We source /etc/profile.d/lang.sh without checking that it exists. If it doesn't, then not just this one line doesn't execute, ENTIRE script is aborted.
I can't reproduce this: [root@nostromo ~]# cd /etc/profile.d/ [root@nostromo profile.d]# mv lang.sh lang.cow [root@nostromo profile.d]# SYSTEMCTL_SKIP_REDIRECT=1 /etc/rc.d/init.d/sshd status openssh-daemon (pid 990) is running... Are you running with any non-default settings? (set -e, for example?) Furthermore, it's in the same package, so it's not a condition that would normally happen.
Not reproducible and, as said in Comment 1, lang.sh is part of the package and it is not missing normally.