Browse Source

ZOOKEEPER-4636: Fix zkServer.sh for AIX

AIX "echo" does not support "-n" argument.

Author: henk.wiedig@t-systems.com <henk.wiedig@t-systems.com>

Reviewers: Enrico Olivelli <eolivelli@apache.org>, maoling <maoling@apache.org>

Closes #1945 from henkwiedig/fix-aix-zkserver
henk.wiedig@t-systems.com 2 years ago
parent
commit
ee8014adc7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bin/zkServer.sh

+ 3 - 0
bin/zkServer.sh

@@ -171,6 +171,9 @@ start)
       *solaris*)
         /bin/echo "${!}\\c" > "$ZOOPIDFILE"
         ;;
+      aix*)
+        /bin/echo "$!\c" > "$ZOOPIDFILE"
+        ;;
       *)
         /bin/echo -n $! > "$ZOOPIDFILE"
         ;;