Re: Default services enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2011-08-24 at 19:57 +0200, Lennart Poettering wrote:
> On Wed, 24.08.11 11:18, Simo Sorce (simo@xxxxxxxxxx) wrote:
> 
> > > FWIW, I do think that there may be use-cases for socket activation of a
> > > database.  I'd like to support the option ... the problem is to do so
> > > without breaking existing, expected behaviors.
> > 
> > I am not sure you can, the only would be to have systemd have some way
> > to get callbacks from service to know when they are actually ready to
> > serve. This would make "After" more meaningful. 
> 
> Hmm, we have that. The traditional way is Type=forking plus double
> forking+exit in the parent. The nicer modern way is Type=notify and
> sd_notify("READY=1").
> 
> I am not entirely I am sure I follow what you are asking for, but do you
> need more thatn this?

Ah although I have read the systemd header files that are used for
inclusion in apps I completely forgot about sd_notify().

I don't think anything else is really necessary.

Thanks!
Simo.

-- 
Simo Sorce * Red Hat, Inc * New York

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux