[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14027370#comment-14027370
 ] 

Marshall McMullen commented on ZOOKEEPER-1937:
----------------------------------------------

[~CpuID] - Yep, looks like the same problem.  I wasn't aware of the file 
src/packages/deb/init.d/zookeeper. But it should probably be fixed in the same 
manner. Do you want to upload a patch? Otherwise I can do so.

> init script needs fixing for ZOOKEEPER-1719
> -------------------------------------------
>
>                 Key: ZOOKEEPER-1937
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1937
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.4.6
>         Environment: Linux (Ubuntu 12.04)
>            Reporter: Nathan Sullivan
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to