1.1.0 • Published 3 years ago

linux_service_maker v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

A basic command line tool to create a .service file for Node.js backend app.

This allows you to run your app without blocking the terminal.

You can run your Node.js app as a background service after creating the service file. This package contains the bare minimum code required to generate the file and a set of instructions to run the service.

Run npm i -g linux_service_maker to install

Please type linuxServiceMaker help in your terminal (after installation) for more info.

When you run the command, a linux service file is generated in the directory of your choice (current directory by default). You have to copy this file to the /etc/systemd/system/ directory.

The .service file is created following @mikemaccana's answer on

https://stackoverflow.com/questions/4018154/how-do-i-run-a-node-js-app-as-a-background-service/29042953

According to him,

forever, monit, PM2, etc are no longer necessary - your OS already handles these tasks.

To report issues/bugs go to:

https://github.com/joshivaibhavs/linuxServiceMaker.js/issues

New features: Set environment variables in lsm.env file Set username and groupname to run the process as that user Run linuxServiceMaker help for more info

1.1.0

3 years ago

1.0.0

3 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago