bbaugher / apache_zookeeper

Chef cookbook for Apache Zookeeper
MIT License
9 stars 22 forks source link

Service init/systemd script does not respect configuration from config_dir #53

Open mdgreenfield opened 6 years ago

mdgreenfield commented 6 years ago

In all the init.d configurations (and probably systemd too) the zkserver_bin is being called with start/stop/status/restart but is the Zookeeper config is not being passed in as argument $2. From zkServer.sh.

if [ "x$2" != "x" ]
then
  ZOOCFG="$ZOOCFGDIR/$2"
fi

# if we give a more complicated path to the config, don't screw around in $ZOOCFGDIR
if [ "x$(dirname $ZOOCFG)" != "x$ZOOCFGDIR" ]
then
    ZOOCFG="$2"
fi

However, in the above, $2 does not get set. So the defaults from zkEnv.sh is being used.

bbaugher commented 6 years ago

Makes sense. Unfortunately I don't really use this much anymore. If you send a PR I'll review it and release though