refactor 'service' recipe to use config-dir as a placeholer for templates