title: How to run a sh file at AWS EC2 reboot/startup
body: <p>I did this </p>
  
  <p>$  vi  /etc/rc.local</p>
  
  <p>and added 1 line to this file. Now this file looks like this:</p>
  
  <pre><code>#!/bin/sh
  #
  # This script will be executed *after* all the other init scripts.
  # You can put your own initialization stuff in here if you don't
  # want to do the full Sys V style init stuff.
  
  touch /var/lock/subsys/local
  /home/mysh.sh
  </code></pre>
  
  <p>I reboot EC2. But mysh.sh seemed not run.
  I confess I am new with Linux.
  Thanks</p>