diff --git a/setup/container/systemd/apphealthtask.service b/setup/container/systemd/apphealthtask.service index 053871962..72c4627eb 100644 --- a/setup/container/systemd/apphealthtask.service +++ b/setup/container/systemd/apphealthtask.service @@ -7,7 +7,7 @@ StopWhenUnneeded=true Type=idle WorkingDirectory=/home/yellowtent/box Restart=always -ExecStart="/home/yellowtent/box/apphealthtask.js" +ExecStart=/usr/bin/node --optimize_for_size --max_semi_space_size=5 --max_old_space_size=30 /home/yellowtent/box/apphealthtask.js Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production" KillMode=process User=yellowtent diff --git a/setup/container/systemd/box.service b/setup/container/systemd/box.service index 6fe6d459f..77da8ea5b 100644 --- a/setup/container/systemd/box.service +++ b/setup/container/systemd/box.service @@ -7,7 +7,7 @@ StopWhenUnneeded=true Type=idle WorkingDirectory=/home/yellowtent/box Restart=always -ExecStart="/home/yellowtent/box/app.js" +ExecStart=/usr/bin/node --max_old_space_size=150 /home/yellowtent/box/app.js Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production" KillMode=process User=yellowtent diff --git a/setup/container/systemd/janitor.service b/setup/container/systemd/janitor.service index d930758f8..7e905bdf6 100644 --- a/setup/container/systemd/janitor.service +++ b/setup/container/systemd/janitor.service @@ -7,7 +7,7 @@ StopWhenUnneeded=true Type=idle WorkingDirectory=/home/yellowtent/box Restart=always -ExecStart="/home/yellowtent/box/janitor.js" +ExecStart=/usr/bin/node --optimize_for_size --max_semi_space_size=5 --max_old_space_size=30 /home/yellowtent/box/janitor.js Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production" KillMode=process User=yellowtent diff --git a/setup/container/systemd/oauthproxy.service b/setup/container/systemd/oauthproxy.service index bec5db226..f52dd7a25 100644 --- a/setup/container/systemd/oauthproxy.service +++ b/setup/container/systemd/oauthproxy.service @@ -7,7 +7,7 @@ StopWhenUnneeded=true Type=idle WorkingDirectory=/home/yellowtent/box Restart=always -ExecStart="/home/yellowtent/box/oauthproxy.js" +ExecStart=/usr/bin/node --optimize_for_size --max_semi_space_size=5 --max_old_space_size=30 /home/yellowtent/box/oauthproxy.js Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production" KillMode=process User=yellowtent