From 06347c5af83330233762e22f0adce00ab44b26c7 Mon Sep 17 00:00:00 2001 From: frju365 Date: Tue, 26 Sep 2017 22:01:25 +0200 Subject: [PATCH] [Fix] Haste.service --- conf/{haste.service => systemd.service} | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename conf/{haste.service => systemd.service} (50%) diff --git a/conf/haste.service b/conf/systemd.service similarity index 50% rename from conf/haste.service rename to conf/systemd.service index 136d796..65ca2c6 100644 --- a/conf/haste.service +++ b/conf/systemd.service @@ -5,12 +5,13 @@ After=network.target [Service] Type=simple -User=haste -Group=haste -WorkingDirectory=/opt/haste -ExecStart=/usr/bin/npm start +User=__APP__ +Group=__APP__ +ExecStartPre=__NODEJS__ +WorkingDirectory=__FINALPATH__ +Environment="PATH=__ENV_PATH__" +ExecStart=/opt/node_n/n/versions/node/__VERSION__/bin/npm start Restart=always -Environment=USER=haste HOME=/opt/haste [Install] WantedBy=multi-user.target