dist: export SCYLLA_HOME, SCYLLA_CONF
This commit is contained in:
parent
bcc99b274f
commit
bdc7f3fb57
6
dist/common/sysconfig/scylla-jmx
vendored
6
dist/common/sysconfig/scylla-jmx
vendored
@ -6,3 +6,9 @@ API_PORT=10000
|
||||
|
||||
# The API address to connect to
|
||||
ADDR=127.0.0.1
|
||||
|
||||
# scylla home dir
|
||||
SCYLLA_HOME=/var/lib/scylla
|
||||
|
||||
# scylla config dir
|
||||
SCYLLA_CONF=/etc/scylla
|
||||
|
1
dist/ubuntu/debian/scylla-jmx.init
vendored
1
dist/ubuntu/debian/scylla-jmx.init
vendored
@ -29,6 +29,7 @@ SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
[ -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
|
||||
|
||||
# Define LSB log_* functions.
|
||||
|
1
dist/ubuntu/debian/scylla-jmx.upstart
vendored
1
dist/ubuntu/debian/scylla-jmx.upstart
vendored
@ -13,5 +13,6 @@ console log
|
||||
|
||||
script
|
||||
. /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
|
||||
end script
|
||||
|
Loading…
Reference in New Issue
Block a user