website icon indicating copy to clipboard operation
website copied to clipboard

systemd service

Open dkebler opened this issue 5 years ago • 0 comments

Don't know if this is covered but the old docs don't talk about launching verdaccio as a systemd service. Yet there is a systemd directory in the repo and a unit file therein.

[Unit]
Description=verdaccio Service

[Service]
Type=simple
User=verdaccio
WorkingDirectory=/home/verdaccio
ExecStart=/usr/bin/env verdaccio
ExecStop=/usr/bin/bash -c "kill $(ps -ef | grep ^verdacc+ | awk {'print $2'})"

[Install]
WantedBy=multi-user.target

dkebler avatar Jan 24 '19 22:01 dkebler