Table of Contents
zinit, slightly smarter server manager and ZServer startup script.
zinit will:
Fork a parent and a child
restart the child if it dies
write a pid file so you can kill (the parent)
reports the childs pid to stdout so you can kill that too
TODO
Have the parent reap the children when it dies
etc.
forkit ( attempts=FORK_ATTEMPTS )
heartbeat ()
main ()
pstamp ( message, sev )
this is a bit of a hack so I dont have to change too much code
run ( argv, pidfile='' )