# Step 4: Configure the startall.sh Script

At startup time, the Docker run command executes the startall.sh script. The startall.sh script is located in the $CFROOT/bin directory.

## Procedure

- Configure the startall.sh script based on your requirements.
  The startall.sh script performs the following functions:
  - Catches the "TERM" signal that is thrown when a Docker container stops. This allows you to copy the Docker Container configuration files to persistent storage. If you do not want to do this, comment out this step.
  - Sets the persistent storage directory names and ensures that the necessary persistent directories have been created.
  - Creates the following PSU environment variables: CFROOT, PATH and LD_LIBRARY_PATH.
  - At startup, copies the configuration files from persistent storage to ephemeral storage ($CFROOT/config) so that you can maintain configuration records when the Docker container is restarted. If you are deploying configuration changes contained in the Docker image, then you should comment out this step. When this is done, the configuration changes contained in the Docker image are used.
  - Starts the necessary CyberResp services. The following services can be started:
    1. IPV4, IPV4 with TLS, IPV4 with TLS Tunnel
    2. IPV6, IPV6 with TLS, IPV6 with TLS Tunnel
  - Executes "sleep forever". This is done because the Docker container terminates when PID 1 ends. So the startall.sh script is kept running forever.

  For information related to these configurations, see TIBCO Managed File Transfer Platform Server for UNIX User's Guide.

Copyright © 2022. TIBCO Software Inc. All Rights Reserved.