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?