Solaris 10 and SMF

From: Andrew Hall (halla3@corp.earthlink.net)
Date: Tue Aug 16 2005 - 10:04:41 EDT


Greetings,

I am new to Solaris 10 and have been reading up on SMF. I have read a
lot of man pages and the admin docs at docs.sun.com and I am still confused.

What I have been doing for Solaris 2.6, 8 and 9, is after I jumpstart a
server the finish script copies a post install system tweak script to
/etc/rc3.d/S99systweak.sh.

This no longer works w/ Solaris 10. The script is not executed during
boot, it is executed after login is started and in the background, which
will not work as the script is interactive.

I have tried to get this script to start by moving it out of /etc/rc3.d
and using inittab via the docs at sun.com that state:

    2. Then, init reads the inittab file and does the following:

    A. Executes any process entries that have sysinit in the action
field so that any special initializations can take place before users login.

    B. Passes the startup activities to svc.startd.

This is not working. The script does not get executed. My question is
how do I get a script to execute _prior_ to login starting and allow for
the script to be interactive, using SMF, like one would using the old
/etc/rc*.d structure.

Can I add a new entry using svcs/svcadm/etc? If so what is the
structure of a new entity?

Is there any _detailed_ documentation out there that discusses SMF and
how to tweak it. Everything I have found so far is generic at best.

Thank you for your time,

Drew

URL to the doc I referenced:
http://docs.sun.com/app/docs/doc/817-1985/6mhm8o5na?a=view
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:19 EDT