# Establish PKI Variable "Slot" Substitutions

PKI_WEB_SERVER_TYPE=[PKI_WEB_SERVER_TYPE]
export PKI_WEB_SERVER_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_LOCKDIR=[PKI_LOCKDIR]
export PKI_LOCKDIR

PKI_PIDDIR=[PKI_PIDDIR]
export PKI_PIDDIR

PKI_UNSECURE_PORT=[PKI_UNSECURE_PORT]
export PKI_UNSECURE_PORT

TOMCAT_PIDFILE=[TOMCAT_PIDFILE]
export TOMCAT_PIDFILE

# Use PKI Variable "Slot" Substitutions

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

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

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

# 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

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