TIBCO Spotfire® Service Python Installation and Administration

Startup Script

You can specify a script to run before a container or Spotfire Service for Python engine is started.

Configuration property Default setting Description
startup.hook.script none The path and name of a startup hook script that runs before any container or Spotfire Service for Python engine is started. This value can be empty (for no script) or a relative path from the Spotfire Service for Python working directory.

Place the startup script in the directory with the custom.properties file (by default <server-installation-dir>/tomcat/spotfire-bin/config/root/conf/).

The Spotfire Service for Python runs a .sh file format.

The script must have appropriate permissions before the Spotfire Service for Python executes it.

You can use the startup script to set environment variables, create directories, download files, or prepare the file system settings in other ways before the service starts. (For example, you can perform Docker commands in the script for your deployment area, or you can run another script. See Containerized Spotfire Service for Python for more information.)

Example

  • Relative path for a Linux deployment area: conf/mystartupscript.sh