diff options
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 0d3d755c..be61b5f6 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -424,10 +424,22 @@ warning() { action() { STRING=$1 echo -n "$STRING " + if [ "${RHGB_STARTED}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then + echo -n "$STRING " > /etc/rhgb/temp/rhgb-console + fi shift initlog $INITLOG_ARGS -c "$*" && success $"$STRING" || failure $"$STRING" rc=$? echo + if [ "${RHGB_STARTED}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then + if [ "$rc" = "0" ]; then + echo_success > /etc/rhgb/temp/rhgb-console + else + echo_failed > /etc/rhgb/tmp/rhgb-console + [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes + fi + echo + fi return $rc } |