Ghost-Config icon indicating copy to clipboard operation
Ghost-Config copied to clipboard

Init script does not create pid file ond Debian Wheezy

Open danielniccoli opened this issue 12 years ago • 2 comments

Can anyone confirm that?

danielniccoli avatar Feb 02 '14 21:02 danielniccoli

Confirm (on Ubuntu 12.04) ! So the current init script actually will kill all node instances on the system when you try to stops the daemon. I submitted a pull request 3 weeks ago. Here it is https://github.com/TryGhost/Ghost-Config/pull/21

yicheinchang avatar Feb 14 '14 21:02 yicheinchang

Hi.

This issue is still exist (Debian Jessie 8.0).

I use @yicheinchang PR, and I thought all was right, but unfortunately... The PID file is created as expected, BUT, the ghost process is never been killed. The PIDFILE is updated itself while restarting so I finished with a PIDFILE with a new number and a process still running with the old PID ...

The only "solution" I found is to manually kill it :/ In the do_stop() method, just before remove the PIDFILE :

# Kill the process manually based on the PID file...
kill $(cat $PIDFILE)

If anyone has a better solution. Thanks

thiphariel avatar Sep 02 '15 07:09 thiphariel