diff --git a/command/init.go b/command/init.go
index <HASH>..<HASH> 100644
--- a/command/init.go
+++ b/command/init.go
@@ -129,7 +129,7 @@ job "example" {
 			}
 
 			service {
-				# name = redis
+				name = "${TASKGROUP}-redis"
 				tags = ["global", "cache"]
 				port = "db"
 				check {
diff --git a/nomad/job_endpoint.go b/nomad/job_endpoint.go
index <HASH>..<HASH> 100644
--- a/nomad/job_endpoint.go
+++ b/nomad/job_endpoint.go
@@ -29,6 +29,7 @@ func (j *Job) Register(args *structs.JobRegisterRequest, reply *structs.JobRegis
 		return err
 	}
 
+	// Expand the service names
 	args.Job.ExpandAllServiceNames()
 
 	if args.Job.Type == structs.JobTypeCore {
Updated the example nomad job spec to use task group name in the service name