aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-03-16 23:43:47 +0000
committerBill Nottingham <notting@redhat.com>2004-03-16 23:43:47 +0000
commit99229a343aa5bb777dd6f8a69978f6de26282024 (patch)
treefd95d1ee9a983f2c0a2ab5aa5e96ff96ffc29d9c /rc.d
parent10665e5d6c27dce6132411272c7ae50c9decc9b9 (diff)
downloadinitscripts-99229a343aa5bb777dd6f8a69978f6de26282024.tar
initscripts-99229a343aa5bb777dd6f8a69978f6de26282024.tar.gz
initscripts-99229a343aa5bb777dd6f8a69978f6de26282024.tar.bz2
initscripts-99229a343aa5bb777dd6f8a69978f6de26282024.tar.xz
initscripts-99229a343aa5bb777dd6f8a69978f6de26282024.zip
check that rhgb is running before calling --quit (#117827, <enrico.scholz@informatik.tu-chemnitz.de>)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc b/rc.d/rc
index b85bb408..db221f8e 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -92,4 +92,6 @@ for i in /etc/rc$runlevel.d/S* ; do
fi
done
rm -f /var/run/confirm
-[ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --quit
+if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
+ /usr/bin/rhgb-client --quit
+fi \ No newline at end of file