瀏覽代碼

Ticket 457 - dirsrv init script returns 0 even when few or all instances fail to start

Bug Description:  We don't return an error code when one or more instances fails to start.

Fix Description:  Return error 1 when an instance fails to start.

https://fedorahosted.org/389/ticket/457

Reviewed by: richm(Thanks!)
(cherry picked from commit ef48c93ded0f766d8dab679b976ca032d6297c32)
Mark Reynolds 13 年之前
父節點
當前提交
969bf99e09
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      wrappers/initscript.in

+ 2 - 1
wrappers/initscript.in

@@ -264,7 +264,8 @@ start() {
         [ -x /sbin/restorecon ] && /sbin/restorecon $lockfile
     fi
     if [ $errors -ge 1 ]; then
-        echo "  *** Warning: $errors instance(s) failed to start"
+        echo "  *** Error: $errors instance(s) failed to start"
+        exit 1
     fi
 }