Linux Startup Script + add one command
Posted
by
Adam
on Server Fault
See other posts from Server Fault
or by Adam
Published on 2012-09-25T21:23:03Z
Indexed on
2012/09/25
21:39 UTC
Read the original article
Hit count: 209
I need one command line to run at startup. I've tested the command (it re-assosiates an Amazon IP to a Linux Server) and the command run successfully.
Just need to know the best method to execute this on server reboot? The server is RedHat and I've read a bit about /etc/init.d but still unsure.
command is:
ec2-associate-address -v -i i-xxx xxx.xxx.xxx.xxx --region ap-southeast-1 -O key -W secret
© Server Fault or respective owner