aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-10-22 19:56:28 +0000
committerBill Nottingham <notting@redhat.com>2003-10-22 19:56:28 +0000
commite058c63a0afdbf7e77839d3394781018100cf573 (patch)
treec383bbd6135e88f07767791a1b05f0a06929fa51 /rc.d/init.d/functions
parent653463dd361765b13bdd916e3292d70b38edbef1 (diff)
downloadinitscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar.gz
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar.bz2
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar.xz
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.zip
switch on rhgb details for confirm mode. (#100894)
catch a couple more failure cases in rc.sysinit for jumping out of rhgb.
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 0badd298..36e7f803 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -438,6 +438,7 @@ strstr() {
# Confirm whether we really want to run this service
confirm() {
+ [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes
while : ; do
echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
read answer
@@ -445,6 +446,7 @@ confirm() {
return 0
elif strstr $"cC" "$answer" ; then
rm -f /var/run/confirm
+ [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=no
return 2
elif strstr $"nN" "$answer" ; then
return 1