restart mail now restart the service

... and not just the container

Fixes #617
This commit is contained in:
Girish Ramakrishnan
2019-02-28 10:41:58 -08:00
parent 578ce09b5e
commit 6a18d6918e
2 changed files with 2 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ var KNOWN_ADDONS = {
const KNOWN_SERVICES = {
mail: {
status: containerStatus.bind(null, 'mail', 'CLOUDRON_MAIL_TOKEN'),
restart: restartContainer.bind(null, 'mail'),
restart: mail.restartMail,
defaultMemoryLimit: Math.max((1 + Math.round(os.totalmem()/(1024*1024*1024)/4)) * 128, 256) * 1024 * 1024
},
mongodb: {