Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
How to run as daemon? #83
Comments
viniciusbo
commented
Nov 1, 2016
|
The best solution I found so far is to daemonize it using PM2. pm2 start /usr/local/lib/node_modules/verdaccio/bin/verdaccio -- -l host:port |
|
I prefer "screen" for that purpose. It allows you to interactively start commands, then detach, logout and re-attach to that shell later if needed. |
|
What about a systemd script? |
viniciusbo
commented
Nov 3, 2016
|
@030 nice! |
|
What about deploying this file as |
|
I oppose automatically creating a file below the /etc directory for one reason: Software installed using package managers (and I see npm as one) should be cleanly and completely removed when uninstalled using that package manager. If a file is copied to /etc using a hook (or did you think of another way?), you also need a hook that removes that file again when uninstalling. |
viniciusbo
commented
Nov 3, 2016
|
@jachstet-sea made a good point. I think it should be optional also because people may prefer other daemon solutions. Altough most server's OSs use systemd by default, personally I prefer OpenRC (at my local machine). |
|
We could deploy it using ansible for example |
juanpicado
added
the
question
label
Feb 4, 2017
juanpicado
added this to the 2.1.2 milestone
Feb 9, 2017
|
I think I can close this one, |
juanpicado
closed this
Feb 9, 2017
added a commit
that referenced
this issue
Mar 10, 2017
juanpicado
added
scale
and removed
scale
labels
Apr 14, 2017
|
fixed on #89 |
viniciusbo commentedNov 1, 2016
•
Edited 1 time
-
viniciusbo
Nov 1, 2016
I've tried to use https://github.com/terminalcloud/terminal-tools/blob/master/daemonize.sh script but this message is getting me stuck:
Failed to start verdaccio.service: Unit verdaccio.service failed to load: No such file or directory.. I'm going to trydaemonize(I mean this one http://software.clapper.org/daemonize/) as well.So I was wondering how you guys daemonize Verdaccio process.