Dynamically create a node systemd service.
This is intended for local development and only serves to simplify the creating a node systemd service process.
Note: This has only been tested with http.
npm install
What is the name of the service?
For instance, let's say you're creating a portfolio website and you want to name
the service portfolio
.
What is the port number?
What port would you like to access your local website?
What is the working directory for your service?
What is the working directory for your project? You'll need the
<new-service>.service
file as well as the
server.js
file.
node index.js
JavaScript Command Line Interface CLI Node.js
- If running with no arguments then give various options
- Add uninstall option
- Make default an install option