[Pkg-sysvinit-devel] Systemd, best parts
Sergey
sergemdev at gmail.com
Wed Oct 26 19:20:47 UTC 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sockinit-sample.tar.bz2
Type: application/x-bzip2
Size: 932 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20111026/175b4fb4/attachment.bin>
More information about the Pkg-sysvinit-devel
mailing list