diff options
Diffstat (limited to 'internal/templates')
| -rw-r--r-- | internal/templates/templates.go | 6 |
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 | |||
| 19 | RestartSec=5s | 19 | RestartSec=5s |
| 20 | NoNewPrivileges=true | 20 | NoNewPrivileges=true |
| 21 | PrivateTmp=true | 21 | PrivateTmp=true |
| 22 | {{- if .Memory}} | ||
| 23 | MemoryMax={{.Memory}} | ||
| 24 | {{- end}} | ||
| 25 | {{- if .CPU}} | ||
| 26 | CPUQuota={{.CPU}} | ||
| 27 | {{- end}} | ||
| 22 | 28 | ||
| 23 | [Install] | 29 | [Install] |
| 24 | WantedBy=multi-user.target | 30 | WantedBy=multi-user.target |
