Default services enabled

Simo Sorce simo at redhat.com
Wed Aug 24 18:29:42 UTC 2011


On Wed, 2011-08-24 at 19:57 +0200, Lennart Poettering wrote:
> On Wed, 24.08.11 11:18, Simo Sorce (simo at redhat.com) 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



More information about the devel mailing list