problems with -sf

From: <matt#itasoftware.com>
Date: Fri, 23 Jan 2009 12:15:01 -0500


I'm trying to get -sf to work. I'm running 1.2.18. I'm starting with a blank host that has haproxy installed, but has never run it. My procedure is:

  1. touch /ita/services/staging-haproxy/haproxy.pids
  2. haproxy -f /ita/installs/boombox-ops/config/apps/haproxy/stg- bbx5lb.haproxy -p /ita/services/staging-haproxy/haproxy.pids -sf $ (cat /ita/services/staging-haproxy/haproxy.pids)

This haproxy blocks my shell as expected. I've verified that it's up and balancing incoming connections. At this point though, /ita/ services/staging-haproxy/haproxy.pids is blank, which I don't think should be the case. At this point I try running the same command in another shell, and it fails.

3) haproxy -f /ita/installs/boombox-ops/config/apps/haproxy/stg- 
bbx5lb.haproxy -p /ita/services/staging-haproxy/haproxy.pids -sf $ 
(cat /ita/services/staging-haproxy/haproxy.pids)

[ALERT] 022/120125 (18206) : cannot bind socket for proxy staging-
flightmixer. Aborting.
[ALERT] 022/120125 (18206) : cannot bind socket for proxy load-test-
api. Aborting.
[ALERT] 022/120125 (18206) : cannot bind socket for proxy staging-api.
Aborting.
[ALERT] 022/120125 (18206) : cannot bind socket for proxy staging-
dashboard-api. Aborting.
[ALERT] 022/120125 (18206) : cannot bind socket for proxy staging-
dashboard. Aborting.
[ALERT] 022/120125 (18206) : cannot bind socket for proxy staging-
stats. Aborting.

What am I doing wrong here? The doc says that -p is relevant to daemon mode. Do I have to force daemon mode to take advantage of this functionality? If so, my process management scripts needs a pid file with the single pid of the parent process. Is there an option for that I'm not seeing, or does the -p pid file contain the parent as the first entry in daemon mode?

Any help would be greatly appreciated.

-Matt Received on 2009/01/23 18:15

This archive was generated by hypermail 2.2.0 : 2009/01/23 18:30 CET