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

scott chu commented on ZOOKEEPER-1122:
--------------------------------------

@Dan: It's about the behavior of DOS cmd "windows title". In the zkServer.cmd, 
this line must succeed:

        title zookeeper
        for /F "tokens=2 delims= " %%A in ('TASKLIST /FI ^"WINDOWTITLE eq 
zookeeper^" /NH') do ( 

However, in some way to start cmd.exe, the title won't be "zookeeper". As I can 
remember, when you press Win+R and type in dos.cmd, then run zkServer.cmd in 
it, the title seems to be normal (i.e. zookeeper). But if you make a shortcut 
of cmd.exe and rename the shortcut to some other name, say 'foowin', then the 
title will become 'foowin'. Anyway, the above command is not reliable.
(Note: I've modifed zkServer.cmd and zkEnv.cmd to make a version that can start 
up multiple zookeeper servers with each server have its own log file, 
respectively. But I don't know how to upload or post them here.

> "start" and "stop" commands are not present in zkServer.cmd
> -----------------------------------------------------------
>
>                 Key: ZOOKEEPER-1122
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1122
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 3.3.3
>         Environment: Windows
>            Reporter: Alexander Osadchiy
>              Labels: patch
>             Fix For: 3.6.0
>
>         Attachments: zkServer.cmd, zkServer.cmd
>
>
> Now ZooKeeper server can be started and stoped from Unix-based systems using 
> script "bin/zkServer.sh":
> bin/zkServer.sh start - to start server;
> bin/zkServer.sh stop - to stop server.
> There are no "start" and "stop" commands in script "zkServer.cmd" (for 
> Windows).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to