echo "$1 is not a valid symlink"
return ${EXIT_CODE_FAILURE}
fi
-
+
if [ ! -x $1 ]; then
echo "$1 is not executable, skipping"
return ${EXIT_CODE_FAILURE}
fi
-
+
return ${EXIT_CODE_SUCCESS}
}
fi
# First, attempt to stop all services started by previous runlevel,
-# and killed in this runlevel (K8 scripts
+# and killed in this runlevel (K* scripts
# If so, first collect all the K* scripts in the new run level.
if [ ${previous} != N ]; then
for kill_script in $(ls /etc/rc.d/rc${runlevel}.d/K* 2> /dev/null); do
if [ -f ${kill_script} ]; then
# "suffix" will contain the script name without the leading Kxx.
suffix="${kill_script##*/K[0-9][0-9]}"
-
+
# If there is a S script in the previous runlevel corresponding
# to this K script, determine what it's full path is.
previous_start="/etc/rc.d/rc${previous}.d/S[0-9][0-9]${suffix}"