0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

Merge pull request #89 from 030/gh83-systemd-script

[GH-83] create systemd service
This commit is contained in:
jotadeveloper 2017-03-10 07:22:24 +01:00 committed by GitHub
commit 9f06ea4b05

12
systemd/verdaccio.service Normal file
View file

@ -0,0 +1,12 @@
[Unit]
Description=verdaccio Service
[Service]
Type=simple
User=verdaccio
WorkingDirectory=/home/verdaccio
ExecStart=/usr/local/lib/npm/bin/verdaccio
ExecStop=/usr/bin/bash -c "kill $(ps -ef | grep ^verdacc+ | awk {'print $2'})"
[Install]
WantedBy=multi-user.target