2011/10/24 Petter Reinholdtsen wrote: > Interesting ideas.
Thanks. > How should this socket passing work when init start a shell script > which in turn start a daemon that should receive the socket? I fail > to understand how it could be done. Init-daemon can just pass the socket descriptor over the environment variable. For getenv() it does not matter whether daemon was started directly or from a script. A simple example of init+script+daemon socket passing attached. >From the first glance it looks like such code would have to be a part of `startpar` utility. > Note that the include file should be outside /etc/ (it is not a > configuration file) to allow easy upgrades. Well, as a part of sysvinit rc-scripts, maybe it could be /etc/init.d/rc-shortcut or /etc/init.d/sysvinit-shortcut. -- Thanks for warm comments
sockinit-sample.tar.bz2
Description: BZip2 compressed data
_______________________________________________ Pkg-sysvinit-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

