Sha256: 72913af925d38705775304bba5b68f6d77e6337d20c5c99e5ba1408ca5e648c3
Contents?: true
Size: 861 Bytes
Versions: 6
Compression:
Stored size: 861 Bytes
Contents
#!/bin/bash # This is another copy the /opt/forger/auto_terminate.sh script because the # /opt/forger/auto_terminate.sh also gets removed when it gets called. Specifically, # it gets gets removed when "terminate after_ami" is called. # There's this extra script that terminates after a timeout because sometimes: # 1. the script stalls: IE: aws ec2 wait image-available and a custom wait_ami # does this. # 2. the user_data script breaks and stops before finishing, never reaching # the terminate_later or terminate_now functions. # source /opt/forger/auto_terminate/functions.sh # remove itself since at jobs survive reboots and if the ami gets created # successfully we do not want this to be captured as part of the ami rm -f /opt/forger/auto_terminate/after_timeout.sh terminate now # hard code to now since only gets called via an at job
Version data entries
6 entries across 6 versions & 1 rubygems