Quote:> We have just aquired 2 new companies and we need to setup their routers
> on our network. How can I make our Solaris 2.6 configure those routers
> at system startup. I know I can set up a cron job to do that but we
> would like to have them configured at the startup. I am not familiar
> with Solaris RCs scripts and in where I should insert the routes setup
> command for it to execute automatical as part of the bootup process.
You probably want to put your script in /etc/rc3.d. That's assuming you
are starting up in runlevel 3 which is full mutiuser mode.
Solaris uses a System V type of startup system. During boot the startup
scripts look in /etc/rc*.d where * is the runlevel. It will run all
scripts starting with S passing a "start" parameter to them (and K scripts
with "stop"). It runs them in numerical order.
If the router commands require other services to start first, you want to
give your script a higher number that the needed startup scripts.
Services which depend on the router settings should have a higher number
than your script.
If you look at existing scripts in this directory, you should be able to
see how they are set up. It's pretty easy to hack an exisitng one to put
in the commands you need.
INTERPRETER, n. One who enables two persons of different languages to
understand each other by repeating to each what it would have been to
the interpreter's advantage for the other to have said.
-- Ambrose Bierce