From 0ebcf93e8964c991251dc95d332c1c571f0d5d3c Mon Sep 17 00:00:00 2001 From: Simon Cheng Date: Fri, 22 May 2020 19:01:43 -0400 Subject: [PATCH] specify full path in ExecStart this commit also will fix the invalid paths for the systemctl template --- bin/wetty.service | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/wetty.service b/bin/wetty.service index e4552aa..5eef6c4 100644 --- a/bin/wetty.service +++ b/bin/wetty.service @@ -10,8 +10,7 @@ After=network.target [Service] -WorkingDirectory=$HOME/.config/yarn/global/node_modules/wetty/ -ExecStart=/usr/bin/node app.js -p 3000 --host 127.0.0.1 +ExecStart=/usr/bin/node $HOME/.config/yarn/global/node_modules/wetty/index.js -p 3000 --host 127.0.0.1 [Install] WantedBy=multi-user.target