1

I'd like to make a firstboot script for CentOS 5/6 and Ubuntu 12.04/12.10/14.04. If possible, I'd like to use one method to trigger this script to run.

From what I can tell, this rules out chkconfig, firstboot file, upstarts jobs, etc. I'm a bit confused with the plethora of terminology/technology. Is there one method I can use for all these platforms that will run a small script on first boot (after other services is fine)?

1 Answer 1

3

You could use /etc/rc.local, it is present on all of the systems you mention. It is executed after all of the other initialisation scripts, see the comments in the file for more information.

1
  • Perfect! I noticed that /etc/rc.local is a symlink on CentOS, and for my purpose I had to update the original file at (etc/rc.d/rc.local) Commented Jul 2, 2014 at 18:58

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.