David Powell wrote:
> On Thu, Sep 21, 2006 at 12:07:36AM +0200, Roland Mainz wrote:
> > > And I also suggest we move all ksh93 libaries to /usr/lib with
> > > the needed exception of libcmd.
> >
> > <blink><marquee>DEFINATELY NO</marquee></blink>. At some point we will
> > have followup projects and many of them (like SMF) simply need libshell
> > in the root filesystem because the consumers live there, too.
> 
>   That's an interesting assertion.  Could you elaborate?

Yes, but it would be nice to start a seperate thread for this because
this is IMO hightly offtopic for this ARC case...

>   I know little about libshell, but I'll admit the possibility that it
>   offers truly compelling functionality.  That said, as a member of the
>   SMF team, the fact that SMF "simply needs" libshell is news to me.

We've been experimenting with some ideas to add things like event-driven
actions and scripting functionlity to SMF. The idea is to have a
dbx/dtksh/tksh-like "shell" interface which contains a couple of
additional things on top of ksh93/libshell, including:
- New builtin commands to control SMF services (like "enable",
"disable", "restart", "refresh", "mark", "clear", "milestone",
"setcurrentservice", "getcurrentservice", "catch", "commit" etc.) and
it's processes (including a way to set the process "projectid", "renice"
all processes belonging to a service (AFAIK these features are missing
in SMF) etc.)
- New variables (maintained by discipline functions) which can be used
to get/set the status (and other attributes) of services (where setting
a variable can either have an immediate effect or execute the changes
when the "commit" command is used)
- The ability to register "callback" functions for specific events (for
example: service started/start completed/terminated/failed (or better:
pre-,poststart/pre-,postshutdown/pre-,postenable/pre-,postdisable/pre-,postmark/failed/error/manifest_loaded/DOM-events
for manifest changes etc.) etc.)
- The ability to read/modify/write+override SMF manifests (somewhere we
have a SAX+DOM implementation for ksh93 floating around which may be
usefull)

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to