fixing bug in init tempalte which prevents the service starting