-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Mon, 17 Aug 2009 07:39:50 +0000
Eric MSP Veith <[email protected]> escribió:
> On Sun, Aug 16, 2009 at 09:39:16PM -0300, Ismael Luceno wrote:
> > > 2 - Use FUSE or others to create a /proc like file system.
> > > Services could be directories in there, a simple "echo" would
> > > trigger actions just like we know it from /proc and /sys.
> > 
> > I had the same idea, but it's more complicated to implement, and
> > not all systems support FUSE, e.g. embedded systems.
> > 
> > But a fs-like interface may be implemented.
> 
> Uhm, what about some simple FIFO files or polling or something like
> that just on top of an ordinary FS?
> 

Too much to check at the same time, would affect performance, memory
footprint and simplicity of implementation badly. There are two
possible communication methods that would be simple enough to
implement:
1. POSIX Message Queues       <- simpler to use
2. UNIX-domain sockets        <- duplex

Message queues are problematic since there's no way to send a response
directly, the same as pipes.

We could use sockets exclusively or use a combination of both...

> > > My intention is to build a mostly InitNG-agnostic API that doesn't
> > > rely on any internals. Just a clean, stable set of commands and
> > > well-defined return values.
> > 
> > +1.
> 
> Does it, in your opinion as InitNG's primary maintainer, make sense
> to begin with designing an API and providing a reference library
> implementation on top of that?

I don't think anyone else would use it right now, but it's useful
to have a standardized interface for ourselves, and maybe it could be
adopted by other inits in the future.

- -- 
Ismael Luceno
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqJL7QACgkQ/mxY0+yOXJoP5QCgsq3EBuO+aXvQd5ZCP5d3wNiT
tY8AnR2PrU9/EPFxoV5aiSTxRQ0x3//K
=3WH3
-----END PGP SIGNATURE-----
--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to