title: Cloud-init per-boot script doing nothing
body: <p>I am new to cloud-init, my final goal is to run an R script each time an EC2 Spot Instance becomes active, but in order to test it I created an on-demand Ubuntu 12.04 instance and created a simple script but nothing happens after reboot. Here are the steps I took:</p>
  
  <ul>
  <li>Launched the new Ubunut 12.04 instance</li>
  <li>Navigate to <code>/var/lib/cloud/scripts/per-boot</code></li>
  <li><code>sudo vi script.sh</code></li>
  <li>Added the following code:</li>
  </ul>
  
  <blockquote>
    <p>#!/bin/sh<br>
    echo "test"</p>
  </blockquote>
  
  <ul>
  <li><code>sudo reboot</code></li>
  </ul>
  
  <p>At this point I thought I should see a "test" print when the instance reboots, but there is nothing there. I went to take a look at <code>/var/log/cloud-init.log</code> but there is no error or anything out of the ordinary.</p>
  
  <p>I am clearly missing something so any tip in the right direction will be much appreciated! </p>
  
  <p>Thanks!</p>