@the-/ps
Process manager for the-framework
Installation
$ npm install @the-/ps --save
Usage
'use strict'
const { default: thePS } = require('@the-/ps')
async function tryExample() {
const ps = thePS('var/my-process.pid')
// Terminate zombie and generate pid file
await ps.acquire()
}
tryExample().catch((err) => console.error(err))
API Guide
- module:@the-/ps
- ThePS
See API Guide for more detail
License
This software is released under the MIT License.