From b97cc505a1839cd1cb3dd89b0ca7c70f9fac386a Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 6 Nov 2015 12:38:25 -0800 Subject: [PATCH] System jobs use Service restart policy --- nomad/structs/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index bfec26fce..6e57fc58c 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -924,7 +924,7 @@ func (r *RestartPolicy) Validate() error { func NewRestartPolicy(jobType string) *RestartPolicy { switch jobType { - case JobTypeService: + case JobTypeService, JobTypeSystem: rp := defaultServiceJobRestartPolicy return &rp case JobTypeBatch: