diff --git a/kafka_server/jobs/kafka_server/templates/bin/kafka_ctl.erb b/kafka_server/jobs/kafka_server/templates/bin/kafka_ctl.erb index 3ba9d0f..28bf864 100644 --- a/kafka_server/jobs/kafka_server/templates/bin/kafka_ctl.erb +++ b/kafka_server/jobs/kafka_server/templates/bin/kafka_ctl.erb @@ -27,7 +27,7 @@ case $1 in exec chpst -u vcap:vcap /var/vcap/packages/kafka/kafka_2.11-0.10.1.0/bin/kafka-server-start.sh \ /var/vcap/packages/kafka/kafka_2.11-0.10.1.0/config/server.properties & - echo $! >> ${PIDFILE} + echo $! > ${PIDFILE} ;; stop) diff --git a/zookeeper_server/jobs/zookeeper_server/templates/bin/zookeeper_ctl.erb b/zookeeper_server/jobs/zookeeper_server/templates/bin/zookeeper_ctl.erb index fa70343..bbb8656 100644 --- a/zookeeper_server/jobs/zookeeper_server/templates/bin/zookeeper_ctl.erb +++ b/zookeeper_server/jobs/zookeeper_server/templates/bin/zookeeper_ctl.erb @@ -29,7 +29,7 @@ case $1 in exec chpst -u vcap:vcap /var/vcap/packages/kafka/kafka_2.11-0.10.1.0/bin/zookeeper-server-start.sh \ /var/vcap/packages/kafka/kafka_2.11-0.10.1.0/config/zookeeper.properties & - echo $! >> ${PIDFILE} + echo $! > ${PIDFILE} ;;