Sha256: 178f9332409d39c8f4b1cccd519705ca533ed4ee9464f01832eb9fc8549b1718

Contents?: true

Size: 343 Bytes

Versions: 12

Compression:

Stored size: 343 Bytes

Contents

#!/bin/bash
function schedule_termination() {
  chmod +x /etc/rc.d/rc.local
  echo "/opt/forger/auto_terminate.sh after_ami >> /var/log/auto-terminate.log 2>&1" >> /etc/rc.d/rc.local
}

function unschedule_termination() {
  grep -v auto_terminate.sh /etc/rc.d/rc.local > /etc/rc.d/rc.local.tmp
  mv /etc/rc.d/rc.local.tmp /etc/rc.d/rc.local
}

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
forger-3.0.2 lib/forger/scripts/auto_terminate/functions/amzn2.sh
forger-3.0.2 lib/forger/scripts/auto_terminate/functions/amzn.sh
forger-3.0.1 lib/forger/scripts/auto_terminate/functions/amzn.sh
forger-3.0.1 lib/forger/scripts/auto_terminate/functions/amzn2.sh
forger-3.0.0 lib/forger/scripts/auto_terminate/functions/amzn.sh
forger-3.0.0 lib/forger/scripts/auto_terminate/functions/amzn2.sh
forger-2.0.5 lib/forger/scripts/auto_terminate/functions/amzn.sh
forger-2.0.5 lib/forger/scripts/auto_terminate/functions/amzn2.sh
forger-2.0.4 lib/forger/scripts/auto_terminate/functions/amzn2.sh
forger-2.0.4 lib/forger/scripts/auto_terminate/functions/amzn.sh
forger-2.0.3 lib/forger/scripts/auto_terminate/functions/amzn.sh
forger-2.0.3 lib/forger/scripts/auto_terminate/functions/amzn2.sh