dist: export SCYLLA_HOME, SCYLLA_CONF

This commit is contained in:
Takuya ASADA 2015-12-02 01:26:13 +09:00
parent bcc99b274f
commit bdc7f3fb57
3 changed files with 8 additions and 0 deletions

View File

@ -6,3 +6,9 @@ API_PORT=10000
# The API address to connect to # The API address to connect to
ADDR=127.0.0.1 ADDR=127.0.0.1
# scylla home dir
SCYLLA_HOME=/var/lib/scylla
# scylla config dir
SCYLLA_CONF=/etc/scylla

View File

@ -29,6 +29,7 @@ SCRIPTNAME=/etc/init.d/$NAME
# Read configuration variable file if it is present # Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME [ -r /etc/default/$NAME ] && . /etc/default/$NAME
export SCYLLA_HOME SCYLLA_CONF
DAEMON=/usr/lib/scylla/jmx/scylla-jmx -jp $JMX_PORT -p $API_PORT -a $ADDR -l /usr/lib/scylla/jmx DAEMON=/usr/lib/scylla/jmx/scylla-jmx -jp $JMX_PORT -p $API_PORT -a $ADDR -l /usr/lib/scylla/jmx
# Define LSB log_* functions. # Define LSB log_* functions.

View File

@ -13,5 +13,6 @@ console log
script script
. /etc/default/scylla-jmx . /etc/default/scylla-jmx
export SCYLLA_HOME SCYLLA_CONF
exec /usr/lib/scylla/jmx/scylla-jmx -jp $JMX_PORT -p $API_PORT -a $ADDR -l /usr/lib/scylla/jmx exec /usr/lib/scylla/jmx/scylla-jmx -jp $JMX_PORT -p $API_PORT -a $ADDR -l /usr/lib/scylla/jmx
end script end script