Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1937

init script needs fixing for ZOOKEEPER-1719

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.6
    • None
    • None
    • None
    • Linux (Ubuntu 12.04)

    • Reviewed

    Description

      ZOOKEEPER-1719 changed the interpreter to bash for zkCli.sh, zkServer.sh and zkEnv.sh, but did not change src/packages/deb/init.d/zookeeper

      This causes the following failure using /bin/sh

      [...] root@hostname:~# service zookeeper stop
      /etc/init.d/zookeeper: 81: /usr/libexec/zkEnv.sh: Syntax error: "(" unexpected (expecting "fi")

      Simple fix, change the shebang to #!/bin/bash - tested and works fine.

      Attachments

        1. ZOOKEEPER-1937.patch
          0.4 kB
          Patrick D. Hunt
        2. ZOOKEEPER-1719.patch
          0.8 kB
          Marshall McMullen

        Activity

          People

            marshall Marshall McMullen
            CpuID Nathan Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: