dist: drop dist/common/scripts/jmx_run, use scripts/scylla-jmx
This commit is contained in:
parent
c6fc4e8340
commit
bcc99b274f
5
dist/common/scripts/jmx_run
vendored
5
dist/common/scripts/jmx_run
vendored
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
args="-Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.port=$JMX_LOCAL_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_LOCAL_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
|
|
||||||
|
|
||||||
exec java $args -jar /usr/lib/scylla/jmx/urchin-mbean-1.0.jar
|
|
9
dist/common/sysconfig/scylla-jmx
vendored
9
dist/common/sysconfig/scylla-jmx
vendored
@ -1 +1,8 @@
|
|||||||
JMX_LOCAL_PORT=7199
|
# The jmx port to open
|
||||||
|
JMX_PORT=7199
|
||||||
|
|
||||||
|
# The API port to connect to
|
||||||
|
API_PORT=10000
|
||||||
|
|
||||||
|
# The API address to connect to
|
||||||
|
ADDR=127.0.0.1
|
||||||
|
4
dist/redhat/scylla-jmx.spec.in
vendored
4
dist/redhat/scylla-jmx.spec.in
vendored
@ -33,7 +33,7 @@ install -m644 dist/redhat/systemd/scylla-jmx.service $RPM_BUILD_ROOT%{_unitdir}/
|
|||||||
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/lib/scylla
|
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/lib/scylla
|
||||||
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx
|
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx
|
||||||
install -m644 target/urchin-mbean-1.0.jar $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx/
|
install -m644 target/urchin-mbean-1.0.jar $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx/
|
||||||
install -m755 dist/common/scripts/* $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx
|
install -m755 scripts/scylla-jmx $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd scylla 2> /dev/null || :
|
/usr/sbin/groupadd scylla 2> /dev/null || :
|
||||||
@ -66,7 +66,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%{_sysconfdir}/sysconfig/scylla-jmx
|
%{_sysconfdir}/sysconfig/scylla-jmx
|
||||||
%{_unitdir}/scylla-jmx.service
|
%{_unitdir}/scylla-jmx.service
|
||||||
%{_prefix}/lib/scylla/jmx/jmx_run
|
%{_prefix}/lib/scylla/jmx/scylla-jmx
|
||||||
%{_prefix}/lib/scylla/jmx/urchin-mbean-1.0.jar
|
%{_prefix}/lib/scylla/jmx/urchin-mbean-1.0.jar
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
2
dist/redhat/systemd/scylla-jmx.service
vendored
2
dist/redhat/systemd/scylla-jmx.service
vendored
@ -8,7 +8,7 @@ Type=simple
|
|||||||
EnvironmentFile=/etc/sysconfig/scylla-jmx
|
EnvironmentFile=/etc/sysconfig/scylla-jmx
|
||||||
User=scylla
|
User=scylla
|
||||||
Group=scylla
|
Group=scylla
|
||||||
ExecStart=/usr/lib/scylla/jmx/jmx_run
|
ExecStart=/usr/lib/scylla/jmx/scylla-jmx -jp $JMX_PORT -p $API_PORT -a $ADDR -l /usr/lib/scylla/jmx
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
2
dist/ubuntu/debian/rules
vendored
2
dist/ubuntu/debian/rules
vendored
@ -20,7 +20,7 @@ override_dh_auto_install:
|
|||||||
cp $(CURDIR)/NOTICE $(DOC)
|
cp $(CURDIR)/NOTICE $(DOC)
|
||||||
|
|
||||||
mkdir -p $(DEST)
|
mkdir -p $(DEST)
|
||||||
cp $(CURDIR)/dist/common/scripts/* $(DEST)
|
cp $(CURDIR)/scripts/scylla-jmx $(DEST)
|
||||||
cp $(CURDIR)/target/urchin-mbean-1.0.jar $(DEST)
|
cp $(CURDIR)/target/urchin-mbean-1.0.jar $(DEST)
|
||||||
|
|
||||||
%:
|
%:
|
||||||
|
3
dist/ubuntu/debian/scylla-jmx.init
vendored
3
dist/ubuntu/debian/scylla-jmx.init
vendored
@ -20,7 +20,6 @@ DESC="Scylla JMX server"
|
|||||||
NAME=scylla-jmx
|
NAME=scylla-jmx
|
||||||
|
|
||||||
SCYLLA_JMX=scylla-jmx
|
SCYLLA_JMX=scylla-jmx
|
||||||
DAEMON=/usr/lib/scylla/jmx/jmx_run
|
|
||||||
PIDFILE=/var/run/scylla-jmx.pid
|
PIDFILE=/var/run/scylla-jmx.pid
|
||||||
|
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
@ -30,7 +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 JMX_LOCAL_PORT
|
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.
|
||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
3
dist/ubuntu/debian/scylla-jmx.upstart
vendored
3
dist/ubuntu/debian/scylla-jmx.upstart
vendored
@ -13,6 +13,5 @@ console log
|
|||||||
|
|
||||||
script
|
script
|
||||||
. /etc/default/scylla-jmx
|
. /etc/default/scylla-jmx
|
||||||
export JMX_LOCAL_PORT
|
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/jmx_run
|
|
||||||
end script
|
end script
|
||||||
|
@ -62,4 +62,4 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
java -Dapiaddress=$API_ADDR -Dapiport=$API_PORT -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar $LOCATION/urchin-mbean-1.0.jar
|
exec java -Dapiaddress=$API_ADDR -Dapiport=$API_PORT -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar $LOCATION/urchin-mbean-1.0.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user