progrium / ginkgo

Python service microframework
http://ginkgo.readthedocs.org
MIT License
325 stars 48 forks source link

ginkgoctl command should block until service is "ready" #53

Open chadselph opened 12 years ago

chadselph commented 12 years ago

It would be great for gingkoctl to provide a command that asked a service if it was ready.

The reasoning behind this is for startup scripts that use ginkgo start. Since the process backgrounds itself, it will return whether or not the service came up cleanly. The command should either return when it gets a response from the service, timeout, or notice that the service's pid is no longer running.

progrium commented 12 years ago

Seems like a lot of daemons do this, like apache. Wonder how they do it.