https://github.com/oracle/docker-images/blob/master/OracleDatabase/dockerfiles/12.1.0.2/runOracle.sh # Set SIGINT handler trap _int SIGINT # Set SIGTERM handler trap _term SIGTERM # Set SIGKILL handler trap _kill SIGKILL ########### SIGINT handler ############ function _int() { echo "Stopping container." echo "SIGINT received, shutting down database!" sqlplus / as sysdba <