0.3.3 • Published 9 years ago

pid-file v0.3.3

Weekly downloads
32
License
MIT
Repository
github
Last release
9 years ago

pid-file

create pif file and has some options

Example

pid = require 'pid-file'
pid.create
  path : (process.env.TMPDIR || process.env.TEMP) + '/app_name.pid'

Create pid file. If exists, rewrite.

pid = require 'pid-file'
pid.create
  path : (process.env.TMPDIR || process.env.TEMP) + '/app_name.pid'
  errorOnExist : true

Create pid file. If exists, throw Error.

pid = require 'pid-file'
pid.create
  path : (process.env.TMPDIR || process.env.TEMP) + '/app_name.pid'
  deleteOnExit : true

When program exit normally, delete pid file.

But, in windows ctrl + C didn't make exit event

pid = require 'pid-file'
pid.create
  path : 'pid/app_name.pid'
  local : true

Create pid file locally to your current working directory.

Why Create Another PID module?

Other PID module I tried throw Error when exist PID File.

But, in my development progress kill process is usaul action.

So, I make another one.

License

MIT

0.3.3

9 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.0.0

10 years ago