diff --git a/ts/smartdaemon.classes.templatemanager.ts b/ts/smartdaemon.classes.templatemanager.ts index 4b77a85..722ae39 100644 --- a/ts/smartdaemon.classes.templatemanager.ts +++ b/ts/smartdaemon.classes.templatemanager.ts @@ -24,6 +24,7 @@ After=network.target [Service] Type=simple +Environment=NODE_OPTIONS=--max_old_space_size=100 ExecStart=/bin/bash -c "cd ${serviceArg.workingDir} && ${serviceArg.command}" WorkingDirectory=${serviceArg.workingDir} Restart=on-failure