pidFiles not removed after stop #327

Closed
esoupy opened this Issue Aug 7, 2012 · 4 comments

Comments

Projects
None yet
4 participants

esoupy commented Aug 7, 2012

A pid file does not get removed after a forever stop is called.

esoupy commented Aug 7, 2012

additional info:
nodejs v0.8.5
CentOS & RHEL 5.7/6.x

Verified on nodejs v0.8.8
Ubuntu 12.04

Test case:

$ cat main.js 
require('http').createServer().listen(9999)
$ forever start --pidFile $(pwd)/pidfile main.js 
info:    Forever processing file: main.js
$ ls
forever.log  main.js  pidfile  stdout.log
$ forever stop main.js 
info:    Forever stopped process:
data:        uid  command         script  forever pid  logfile                      uptime      
[0] yjz1 /usr/bin/nodejs main.js 6549    6551 /home/andy/.forever/yjz1.log 0:0:0:5.707 
$ ls
forever.log  main.js  pidfile  stdout.log
$ cat forever.log 
$ cat stdout.log 
$ exit

Without the try/catch block, same thing.

Contributor

fb55 commented Aug 29, 2012

@superjoe30 Thanks, I already openend a pull request that fixes the issue.

indexzero closed this in a73eb5a Nov 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment