Hi. I am trying to figure out how Solaris 10 boots up zones.
Problem ------ Customer needs to add static routes vi the new service we created and the interface used is that of a zone and when S10 boots the service runs before the zone is booted and the routes do not get added. Current work around #1 ----------------- 1. Create the .xml file 2. Create the routeadd script 3. add it to the repository 4. Run the service manually after the zones are booted up after the reboot. Current work around #2 ----------------- Removed the service from the repository. Create the /usr/bin/routeadd script with all the route add statements. # vi /usr/sbin/routeradd #!/bin/sh #echo "Adding route to 161.14.0.0/23 for tarantella" /usr/sbin/route add 161.14.0.0/23 128.212.92.1 -ifp ce101002:1 # For Global zone - Needed to get to the Tarantella server /usr/sbin/route add 161.14.0.0/23 128.212.92.193 -ifp ce111002:2 # For TVM local zone /usr/sbin/route add 161.14.0.0/23 206.122.57.225 -ifp ce113002:2 # For Financials local zone #echo "Adding route to opsware servers" /usr/sbin/route add 148.94.137.123/32 128.212.92.1 -ifp ce101002:1 # For Global zone /usr/sbin/route add 148.94.137.124/32 128.212.92.1 -ifp ce101002:1 # For Global zone /usr/sbin/route add 148.94.137.125/32 128.212.92.1 -ifp ce101002:1Created a legacy startup script - /etc/rc3.d/S100addstaticroutes Create a legacy startup script to run that runs an "at" job. The "at" job will run 5 minutes later, which adds the routes. This insures the zone is booted. # vi/etc/rc3.d/S100addstaticroutes #!/bin/sh at now + 5 minutes < /usr/bin/routeradd So, my question is, is there a better way to contorl this? How do we make sure the zone is booted before the service we created runs? Thanks in advance. -- Thanks, Larry A. Blom _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/_/_/_/ _/_/_/ _/ _/ M I C R O S Y S T E M S , I N C ______________________________________________________ [EMAIL PROTECTED] | Sun Microsystems Customer Care Center | 500 Eldorado Blvd. Tele: (303)464-4505 [x50505] | UBRM04-019 Fax: (303)272-5938 | Broomfield, CO 80021 ______________________________________________________ Submit, check and update tickets at http://www.sun.com/service/online _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org