Here is an example, taken from Symfony2 website, about defining a custom service (YAML notation):
services: newsletter_manager:
you can also do this if you want to get details of a single service:
php app/console container:debug service_id
this will give you info on that service