How can I run a script on the first book of my rhel 5 server after install.
I am using post kickstart tasks to create a script and I'd like to run it the first time the server boots. How can I do this?
I'd like to use the "firstboot" service
|
feedback
|
|
Is there any reason you NEED to use the firstboot service? Take a look at: How to run script on first boot? | |||
|
feedback
|
|
Create a script that tests for the existence or absence of a file. As the last step of a successful run of the script create/delete the status file. When preparing your image, you need to make sure the your status file is in the correct state. | |||||
feedback
|
|
You need to echo your scripts to /etc/rc.d/rc.local and may be find a script that will replace those lines later using cron jobs but the way to do it is rc.d directory | |||
|
feedback
|