New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

keepalive

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keepalive

start a process and respawn if it dies

latest
npmnpm
Version
3.0.0
Version published
Weekly downloads
89
-62.29%
Maintainers
1
Weekly downloads
 
Created
Source

keepalive

Keepalive is a simple bash script that executes a process and respawns it if it exits.

Usage

keepalive [--num=<num>] <user> <log> <cmd> [<cmdopts>]

ARGUMENTS
  user          Username which ia used to run service
  log           Path to log file
  cmd           Path to command
  cmdopts	Options to pass to command

OPTIONS
  --num=<num>	Number of instances to spawn (default 1)

Example

$ keepalive nobody my.log /bin/my-service --options foo

Signals

Keepalive recognizes the following signals:

  • HUP: reopen log files
  • TERM: send TERM to process group (terminates service)

Change Log

  • 3.0.0: bump version to reflect introduction of a breaking change
  • 2.1.0: --num option (WARNING: this was unintentionally a breaking change)
  • 2.0.1: fix issues reopening log file
  • 2.0.0: required args
  • 1.3.1: fix issues killing process group
  • 1.3.0: --user option
  • 1.2.0: --logfile option
  • 1.1.0: log support and reopen log on HUP
  • 1.0.1: kill launched process on TERM
  • 1.0.0: initial release

FAQs

Package last updated on 22 Nov 2016

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