# Establish PKI Variable "Slot" Substitutions

PKI_SUBSYSTEM_TYPE=[PKI_SUBSYSTEM_TYPE]
export PKI_SUBSYSTEM_TYPE

PKI_USER=[PKI_USER]
export PKI_USER

PKI_GROUP=[PKI_GROUP]
export PKI_GROUP

PKI_INSTANCE_NAME=[PKI_INSTANCE_NAME]
export PKI_INSTANCE_NAME

PKI_INSTANCE_PATH=[PKI_INSTANCE_PATH]
export PKI_INSTANCE_PATH

PKI_INSTANCE_INITSCRIPT=[PKI_INSTANCE_INITSCRIPT]
export PKI_INSTANCE_INITSCRIPT

PKI_SERVER_XML_CONF=[PKI_SERVER_XML_CONF]
export PKI_SERVER_XML_CONF

# Use CATALINA_BASE

CATALINA_BASE=$PKI_INSTANCE_PATH
export CATALINA_BASE

TOMCAT_PROG=$PKI_INSTANCE_NAME
export TOMCAT_PROG

TOMCAT_USER=$PKI_USER
export TOMCAT_USER

TOMCAT_GROUP=$PKI_GROUP
export TOMCAT_GROUP

PKI_LOCKDIR="/var/lock/pki/${PKI_SUBSYSTEM_TYPE}"
export PKI_LOCKDIR

PKI_LOCKFILE="${PKI_LOCKDIR}/${PKI_INSTANCE_NAME}"
export PKI_LOCKFILE

PKI_PIDDIR="/var/run/pki/${PKI_SUBSYSTEM_TYPE}"
export PKI_PIDDIR

PKI_PIDFILE="${PKI_PIDDIR}/${PKI_INSTANCE_NAME}.pid"
export PKI_PIDFILE

TOMCAT_LOCKFILE=/var/lock/subsys/${PKI_INSTANCE_NAME}
export TOMCAT_LOCKFILE

TOMCAT_PIDFILE=[TOMCAT_PIDFILE]
export TOMCAT_PIDFILE

pki_instance_configuration_file=${PKI_INSTANCE_PATH}/conf/CS.cfg
export pki_instance_configuration_file

RESTART_SERVER=${PKI_INSTANCE_PATH}/conf/restart_server_after_configuration
export RESTART_SERVER
