/usr/share/rdscli/service is in rdscli 1.10.003-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh
AWS_RDS_HOME=${AWS_RDS_HOME:-"/usr/share/rdscli"}
jshared=${AWS_RDS_JAVA_SHARED_CLASSPATH:-"/usr/share/java/activation.jar:/usr/share/java/commons-cli.jar:/usr/share/java/commons-codec.jar:/usr/share/java/commons-discovery.jar:/usr/share/java/commons-httpclient.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-logging-api.jar:/usr/share/java/jdom1.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/serializer.jar:/usr/share/java/stax-api.jar:/usr/share/java/wsdl4j.jar:/usr/share/java/wss4j.jar:/usr/share/java/xalan2.jar"}
[ "${AWS_RDS_HOME#@@}" = "${AWS_RDS_HOME}" ] ||
{ echo "you must either set AWS_RDS_HOME or install" 1>&2; exit 1; }
# when installed, AWS_RDS_HOME, jars are in that dir (/usr/share/rdscli)
# when run out of build dir, they are in subdir 'lib'
[ -d "${AWS_RDS_HOME}/lib" ] && service_home="${AWS_RDS_HOME}/lib" ||
service_home="${AWS_RDS_HOME}"
for j in "${service_home}"/*.jar; do cp="${cp:+${cp}:}${j}"; done
[ -n "${CLASSPATH%:}" ] && cp="${CLASSPATH%:}:${cp}"
[ "${jshared#@@}" != "${jshared}" ] || cp="${cp}:${jshared}"
exec ${JAVA_COMMAND:-java} ${AWS_RDS_JVM_ARGS} -classpath "${cp}" \
com.amazon.webservices.Cli "$@"
|