one fix:
2. ...start:
*start_daemon -u $ES_USER -p $pidfile $exec -p $pidfile -d 
-Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR 
-Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR 
-Des.default.path.conf=$CONF_DIR*
start_daemon -u elasticsearch -p /var/run/elasticsearch/
elasticsearch.pid /usr/share/elasticsearch/bin/elasticsearch -p 
/var/run/elasticsearch/elasticsearch.pid -d 
-Des.default.path.home=/usr/share/elasticsearch 
-Des.default.path.logs=/var/log/elasticsearch 
-Des.default.path.data=/var/lib/elasticsearch 
-Des.default.path.work=/tmp/elasticsearch 
-Des.default.path.conf=/etc/elasticsearch

Do not forget to change owner and group on:
/var/run/elasticsearch
/var/log/elasticsearch
/var/lib/elasticsearch
/tmp/elasticsearch

chown -R elasticsearch /var/log/elasticsearch
chown -R elasticsearch /var/lib/elasticsearch
chown -R elasticsearch /tmp/elasticsearch
chgrp -R elasticsearch /var/lib/elasticsearch
chgrp -R elasticsearch /tmp/elasticsearch
chgrp -R elasticsearch /var/log/elasticsearch
chmod -R 775 /tmp/elasticsearch /var/log/elasticsearch 
/var/lib/elasticsearch

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9edd8e18-7c6f-4999-a07a-635175a8be41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to