Skip to content

Commit

Permalink
Update zookeeper.conf.j2
Browse files Browse the repository at this point in the history
replace the hard coded /var/log/zookeeper with {{log_dir}} variable
  • Loading branch information
kknd22 authored Dec 20, 2017
1 parent 25ade86 commit a83d4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/zookeeper.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ kill timeout 300

script
# https://superuser.com/questions/213416/running-upstart-jobs-as-unprivileged-users
exec su -s /bin/sh -c 'exec "$0" "$@" &>>/var/log/zookeeper/init-zookeeper.log' zookeeper -- \
exec su -s /bin/sh -c 'exec "$0" "$@" &>>{{ log_dir }}/init-zookeeper.log' zookeeper -- \
{{zookeeper_dir}}/bin/zkServer.sh start-foreground
end script

0 comments on commit a83d4af

Please sign in to comment.