Blame | Last modification | View Log | RSS feed
#!/bin/bash#Define cleanup procedurecleanup() {echo "Container stopped, performing cleanup..."/etc/init.d/apache2 stop}#Trap SIGTERMtrap 'cleanup' SIGTERM#Execute a command"${@}" &#Waitwait $!