Added mandatory parameter --provides for geninitd, added tests.
Added logic for pid monitoring
template fix