From 28311db37d66a0900178b66b1bcf7716569c437a Mon Sep 17 00:00:00 2001 From: Metaa Date: Sat, 4 Nov 2017 03:33:21 +0100 Subject: [PATCH] Using the env path in the systemd service Discussed in #396 --- systemd/verdaccio.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/verdaccio.service b/systemd/verdaccio.service index e8339a98e..c6be7772f 100644 --- a/systemd/verdaccio.service +++ b/systemd/verdaccio.service @@ -5,7 +5,7 @@ Description=verdaccio Service Type=simple User=verdaccio WorkingDirectory=/home/verdaccio -ExecStart=/usr/local/lib/npm/bin/verdaccio +ExecStart=/usr/bin/env verdaccio ExecStop=/usr/bin/bash -c "kill $(ps -ef | grep ^verdacc+ | awk {'print $2'})" [Install]