mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Merge pull request #89 from 030/gh83-systemd-script
[GH-83] create systemd service
This commit is contained in:
commit
9f06ea4b05
1 changed files with 12 additions and 0 deletions
12
systemd/verdaccio.service
Normal file
12
systemd/verdaccio.service
Normal 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
|
Loading…
Reference in a new issue