Added retry arguments to service definition

This PR fixes the issue I've described on #262.

Tested to work with Ubuntu 12.04 and 14.04.