#!/bin/bash
# Add this script in your user-data to turn on the hibernation support
# for the EC2 Spot Instances.

# Make sure the agent is added to the auto-start
update-rc.d hibagent defaults

# And start it
exec service hibagent start
