mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
[GH-83] create systemd service
This commit is contained in:
parent
f84ca18798
commit
eebc466e34
1 changed files with 9 additions and 0 deletions
9
systemd/verdaccio.service
Normal file
9
systemd/verdaccio.service
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[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'})"
|
Loading…
Reference in a new issue