Closed dcode closed 9 years ago
I just noticed the bash profile script. I think the environment variables should go in the init script directly and can be overridden in /etc/default/zookeeper (if using Debian semantics, which is what your init script suggests).
Added the "system" property, which was really the whole point. :)
Fixed by #26
I see that you're creating a group and user for zookeeper, which is ideal, but I think it should be a system user and denied typical user attributes (home dir and full shell). I would expect something like the following:
I'm not a Zookeeper expert by any stretch, but the above would give a more typical *nix setup for a system account. See http://unix.stackexchange.com/questions/101313/what-are-the-dangers-of-creating-a-normal-user-with-uid-500 for a related discussion. I didn't edit and submit a pull request b/c I'm not that familiar with zookeeper.