Socket
Book a DemoInstallSign in
Socket

@dwbinns/node-service

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dwbinns/node-service

Install Linux systemd node services, optionally requiring capabilities such as `CAP_NET_BIND_SERVICE` (which allows listening to privileged ports such as port 80 for http).

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

node-service

Install Linux systemd node services, optionally requiring capabilities such as CAP_NET_BIND_SERVICE (which allows listening to privileged ports such as port 80 for http).

The service will run as your user and in the current working directory.

Example

Add this to package.json:

    "service": {
        "capabilities": [
            "CAP_NET_BIND_SERVICE"
        ],
        "start": "src/index.js service"
    },
    "scripts": {
        "start": "node-service start",
        "install-service": "node-service install",
        "uninstall-service": "node-service uninstall",
        "journal-service": "node-service journal"
    }
  • run interactively with CAP_NET_BIND_SERVICE : npm start
  • install a systemd service: npm run install-service
  • uninstall with: npm run uninstall-service
  • watch the systemd service journal: npm run journal-service

FAQs

Package last updated on 30 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.