summaryrefslogtreecommitdiffstats
path: root/internal/templates
diff options
context:
space:
mode:
Diffstat (limited to 'internal/templates')
-rw-r--r--internal/templates/templates.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/templates/templates.go b/internal/templates/templates.go
index feb6c10..ce1cbe5 100644
--- a/internal/templates/templates.go
+++ b/internal/templates/templates.go
@@ -19,6 +19,12 @@ Restart=always
19RestartSec=5s 19RestartSec=5s
20NoNewPrivileges=true 20NoNewPrivileges=true
21PrivateTmp=true 21PrivateTmp=true
22{{- if .Memory}}
23MemoryMax={{.Memory}}
24{{- end}}
25{{- if .CPU}}
26CPUQuota={{.CPU}}
27{{- end}}
22 28
23[Install] 29[Install]
24WantedBy=multi-user.target 30WantedBy=multi-user.target