Skip to content

Instantly share code, notes, and snippets.

@maruf89
Last active August 29, 2015 14:14
Show Gist options
  • Save maruf89/1ac49533f29d2839af69 to your computer and use it in GitHub Desktop.
Save maruf89/1ac49533f29d2839af69 to your computer and use it in GitHub Desktop.
Elasticsearch startfile
#!/bin/bash
NAME=elasticsearch
DIR=/opt/${NAME}
PID=/var/run/${NAME}.pid
if [ ! -f $PID ]; then
echo $$ > $PID
fi
echo $DIR
echo $PID
${DIR}/bin/${NAME} -d -p ${PID} -Des.default.config=/etc/${NAME}/${NAME}.yml -Des.default.path.home=${DIR} -Des.default.path.logs=/var/log/${NAME} -Des.default.path.data=/var/lib/${NAME} -Des.default.path.work=/tmp/${NAME} -Des.default.path.conf=/etc/${NAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment