From 5c5826b246af5a6874091153499597cf8834b22b Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 7 Jun 2024 21:24:02 +0200 Subject: [PATCH] Fix service --- conf/systemd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index d2aa174..51ce04b 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,8 +9,10 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=pnpm run prod +ExecStart=__NODEJS_PATH__/pnpm run prod Restart=always +StandardOutput=append:/var/log/etherpad/etherpad.log +StandardError=inherit # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these