1

Possible Duplicate:
Linux Startup Script + add one command

I have an ec2-associate-address command line that reassigns an EIP to EC2 successfully when I run it from the command line.

I've put this command line into /etc/rc.local but it doesn't re-assign the EIP - it remains a EC2 Public address (that changes each reboot)...

Note: the script is using and IAM user with assign IP rights and this works fine so long as I run it myself. Also Note: if I excute sudo /etc/rc.local it also assigns the IP.

Is the script running to early by chance?

What else could be preventing this from working?

Does rc.local run as root?

Adam
  • 505
  • 1
  • 6
  • 10
  • Try adding the full path of the executable, i.e. /usr/bin/ec2-associate-address or wherever it is. Use which to find its location. – senorsmile Sep 25 '12 at 22:06
  • actually its not a duplicate - if you read it more closly - the inital was about where to place the command and this was having trouble with it not running on startup... best read closer there boys... – Adam Sep 25 '12 at 22:33

0 Answers0