I’m having trouble getting ES (3.0.0-rc9) to use parameters from the config file under Ubuntu 14.04 LTS (running on Azure). Specifically, I’ve gotten as far as specifying the log directory but it will not work.
I’ve set up ES as an Upstart job with the following in /etc/init/es-test.conf:
Sample Upstart conf file for GetEventStore
author “Lars Kemmann”
description “EventStore server”
version “3.0.0-rc9”
start on net-device-up IFACE!=lo
stop on starting rc RUNLEVEL=[06]
chdir /home/azureuser/es-v3.0.0-rc9
script
startuplog="/home/azureuser/es-startup.log"
timestamp=$(date --iso-8601=seconds)
echo 'EventStore server job starting at '$timestamp >> $startuplog
username=azureuser
es_path=/home/azureuser/es-v3.0.0-rc9/clusternode
es_configpath=/home/azureuser/es-config.yaml
#es_logdir=/home/azureuser/es-logs
#cmd='sudo -u ‘$username’ ‘$es_path’ --log ‘$es_logdir’ --config '$es_configpath
cmd='sudo -u ‘$username’ ‘$es_path’ --config '$es_configpath
echo 'COMMAND: '$cmd >> $startuplog
$cmd >> $startuplog # This is a temporary workaround to actually let me see the process output.
end script
``
Here is the ES config file in ~/es-config.yaml: