diff --git a/setup/start/systemd/box.service b/setup/start/systemd/box.service index ef4ceae5c..f6672d410 100644 --- a/setup/start/systemd/box.service +++ b/setup/start/systemd/box.service @@ -12,7 +12,8 @@ Wants=cloudron-resize-fs.service Type=idle WorkingDirectory=/home/yellowtent/box Restart=always -ExecStart=/usr/bin/node --max_old_space_size=150 /home/yellowtent/box/box.js +; Systemd does not append logs when logging to files, we spawn a shell first and exec to replace it after setting up the pipes +ExecStart=/bin/sh -c 'exec /usr/bin/node --max_old_space_size=150 /home/yellowtent/box/box.js >> /home/yellowtent/platformdata/logs/box.log 2>&1' Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production" ; kill apptask processes as well KillMode=control-group