Bug #37630 proxy chassis should remove the pid-file when exiting
Submitted: 25 Jun 2008 13:11 Modified: 9 Jan 2015 10:02
Reporter: Kay Roepke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Proxy: Core Severity:S4 (Feature request)
Version:0.7.0 OS:Any
Assigned to: Jan Kneschke CPU Architecture:Any
Tags: pid, proxy

[25 Jun 2008 13:11] Kay Roepke
Description:
Currently, if the proxy is started as a daemon it does not remove its file when exiting cleanly (via exit() or return from main).

How to repeat:
Run mysql-proxy in daemon mode and set --pid-file=/tmp/proxy.pid.

After the proxy-exits, a stale pid file is left.

Suggested fix:
unlink the pid file before returning from main
currently that would break the test-suite (run-tests.lua), so we need to rework some of the test harness to make it happen.
[28 Sep 2010 12:31] Enterprise Tools JIRA Robot
Jan Kneschke writes: 
https://code.launchpad.net/~jan-kneschke/mysql-proxy/test-suite-refactoring was pushed into lp:mysql-proxy aka MySQL Proxy 0.9.