zbatery: unlink pid file during graceful shutdown
authorEric Wong <normalperson@yhbt.net>
Wed, 23 Nov 2011 09:52:48 +0000 (09:52 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 23 Nov 2011 10:36:39 +0000 (10:36 +0000)
commit90d1d769b9af83d6d1464658169e72b9467ab384
tree9fdd30d4c9f03e5ad7b7fb8e9e8d22b0e081c6e6
parentb6b36c534ae1b6f8120d3e48eca47463f21b06ea
zbatery: unlink pid file during graceful shutdown

We don't have the same shutdown sequence as unicorn, there is no
need to leave pid files hanging around during upgrades.  Of
course we can't guarantee this (or any) behavior for
non-graceful shutdowns...
lib/zbatery.rb
t/t0003-reopen-logs.sh