summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2005-11-28 16:21:15 +0000
committerChristian Heim <phreak@gentoo.org>2005-11-28 16:21:15 +0000
commit34251c52e9210a738cb4f9e05d8727e5d21146d6 (patch)
treeacddcf6f77a19d11b363beec8506923ac17a74c2 /bin
parentFixing mkrelease to use our new svnroot (diff)
downloadbaselayout-vserver-34251c52e9210a738cb4f9e05d8727e5d21146d6.tar.gz
baselayout-vserver-34251c52e9210a738cb4f9e05d8727e5d21146d6.tar.bz2
baselayout-vserver-34251c52e9210a738cb4f9e05d8727e5d21146d6.zip
Import the latest baselayout changes. Merging revision 1634.
svn path=/baselayout-vserver/trunk/; revision=122
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rc-status8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/rc-status b/bin/rc-status
index 7aba912..299383c 100755
--- a/bin/rc-status
+++ b/bin/rc-status
@@ -204,6 +204,7 @@ else
boot_crit="checkroot hostname modules checkfs localmount clock"
fi
+broken=""
for level in ${runlevelidxs} ; do
echo "Runlevel: ${HILITE}${level}${NORMAL}"
for service in ${runlevels[${arridx}]} ; do
@@ -212,6 +213,7 @@ for level in ${runlevelidxs} ; do
]] && [[ ${level} != "${BOOTLEVEL}" \
|| " ${boot_crit} " != *" ${service} "* ]]; then
print_msg "${service}" "${BAD}" 'broken '
+ broken="${broken} ${service}"
elif [[ -n ${inactive} && $(in_list "${inactive}" "${service}") -eq 1 ]] ; then
print_msg "${service}" "${WARN}" 'inactive'
elif [[ $(in_list "${started}" "${service}") -eq 1 ]] ; then
@@ -227,3 +229,9 @@ for level in ${runlevelidxs} ; do
let "arridx += 1"
[ -n "${UNUSED}" ] && exit 0
done
+
+if [[ -n ${broken} ]]; then
+ eerror "You have some broken symbolic links as reported by the broken"
+ eerror "status above. This can be fixed by removing the broken service"
+ eerror "from its runlevel and re-adding it back using rc-update."
+fi