init script rewritten with respect to the new infrastructure (version 4)