简体   繁体   中英

Run startupscript on Fedora 8 Core

I'm using Amazon EC2 with a Fedora 8 Core AMI. I have an EBS volume mounted at /ebsmnt, and a startupscript located at /ebsmnt/startupscript.sh . Currently I have to login to the server, cd to /ebsmnt/ and run the script manually. How can I make Fedora run this script automatically at startup, without any interaction from me? (by having it on /ebsmnt/ I don't have to recompile the AMI everytime I wish to make changes to the script). I'm not too familiar with *nix, so a step by step guide would be very much appreciated.

The contents of the file /etc/rc.local are executed on startup.
note: You will have to add the full path to the script.

Does the script understand the "Start" and "Stop" parameters? If so it could be added to the runlevels.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM