Skip to content

Instantly share code, notes, and snippets.

@gose
Last active December 12, 2015 01:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gose/4694398 to your computer and use it in GitHub Desktop.
Save gose/4694398 to your computer and use it in GitHub Desktop.
Endeca Platform Services Startup Script: /etc/rc.d/init.d/endeca-ps
#!/bin/sh
#
# Oracle Endeca Platform Services
#
# chkconfig: 345 90 21
# description: Oracle Endeca Platform Services
#
################################################################################
#
# This is an example init.d service script for running Endeca automatically
# on Linux systems that support 'chkconfig'. The following steps will help you
# install Endeca as an automatic service.
#
# NOTE: Your Linux system must support 'chkconfig' for the following procedure.
#
# Review the chkconfig header at the top of this file to make sure it has
# the appropriate runlevels, start priority, and end priority that you
# want Endeca to start under. Consult the documention for your Linux
# system to understand these settings.
#
# At a command prompt, run chkconfig to add the MDEX service. For example:
#
# $ /sbin/chkconfig --add endeca-ps
#
################################################################################
ENDECA_USER=endeca
source /usr/local/endeca/MDEX/6.4.0/mdex_setup_sh.ini
source /usr/local/endeca/PlatformServices/workspace/setup/installer_sh.ini
usage() {
echo "Usage: ${0} (start|stop)"
}
case "${1}" in
start)
/bin/su - "${ENDECA_USER}" -c "${ENDECA_ROOT}/tools/server/bin/startup.sh"
;;
stop)
/bin/su - "${ENDECA_USER}" -c "${ENDECA_ROOT}/tools/server/bin/shutdown.sh"
;;
*)
usage
exit 2
esac
exit $?
@ryanc
Copy link

ryanc commented Oct 21, 2014

Thank you for posting this. It was very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment