Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

execute shell command when container is being stopped

...

#Trap SIGTERM
trap 'true' SIGTERM

#Execute command
"${@}" &

#Wait
wait $!

#Cleanup
cleanup
Comment

PREVIOUS NEXT
Code Example
Shell :: pip increase timeout duration 
Shell :: how to search to sudo apt install for applications 
Shell :: powershell get wifi password 
Shell :: gatsby typescript 
Shell :: git commands cheat sheet pdf 
Shell :: find syntax in linux 
Shell :: what is the command to move the cursor to the start of the current line in vi 
Shell :: vite new project 
Shell :: ufw rules 
Shell :: rsync exclude directory 
Shell :: unzip gzip 
Shell :: remove tools 
Shell :: snap cli install bitwarden 
Shell :: error: Cannot resolve module 
Shell :: Target Packages (main 
Shell :: bash if flags 
Shell :: pinch on linux 
Shell :: Remove old git 
Shell :: install gnome-panel for kali linux 
Shell :: kube cluster 
Shell :: brew install older version 
Shell :: ros2 galactic build from source 
Shell :: ubuntu create ln 
Shell :: Unable to install libgnutls-dev 
Shell :: grep -R exlude directory 
Shell :: unzip file git bash 
Shell :: atom required packages for Ubuntu 
Shell :: smach viewer usage 
Shell :: npm script run first script in the background 
Shell :: Linux UTF-8 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =