Summary: | net-proxy/haproxy fails to start: cannot bind UNIX socket | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Carlos Konstanski <ckonstanski> |
Component: | Current packages | Assignee: | Christian Ruppert (idl0r) <idl0r> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | arthur |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Carlos Konstanski
2017-08-26 18:45:26 UTC
Version: net-proxy/haproxy-1.6.11-r1 Either configure haproxy to create the socket directly under /run or create a /etc/tmpfiles.d/haproxy.conf file (I hear they are supported in OpenRC too) with: D /run/haproxy 0750 root haproxy haproxy does not come with a default config and thus you'll have to create all files/directories that are required by your setup on your own. It is easily possible to hook the init scripts by extending the conf.d file or like zless mentioned perhaps. Does this work for you? I already do this: test -d /run/haproxy || mkdir /run/haproxy /etc/init.d/haproxy start /run/haproxy disappears after every shutdown; this must be done for every startup. I'll look into the /etc/conf.d method. It's weak sauce though. The PID directory ought to be managed by the daemon. I suppose I need to take this up with upstream. |