void-packages/srcpkgs/zookeeper/files/zookeeper/run

7 lines
202 B
Bash

#!/bin/sh
[ -f ./conf ] && . ./conf
: ${DEFAULT_CONF_PATH:='/etc/zookeeper/conf/environment'}
exec chpst -u _zookeeper \
/usr/share/zookeeper/bin/zkServer.sh start-foreground ${DEFAULT_CONF_PATH}