Smart and scalable init scripts