Guys,

This is not an HAProxy related question, but more a system question.
simply test your configuration with -c and redirect stderr to a text
file in /var/log/ and you're done!

Baptiste

On Tue, Feb 17, 2015 at 2:57 PM, Cohen Galit <galit.co...@comverse.com> wrote:
> Hello HAProxy team,
>
> We will appreciate your answer for the question below.
>
> Thanks, Galit
>
> _____________________________________________
> From: Yosef Amir
> Sent: Tuesday, February 10, 2015 5:08 PM
> To: HAProxy
> Cc: Cohen Galit; Yosef Amir
> Subject: Logging to file when HAProxy failed to start
>
>
> Hi ,
> Currently, When HAproxy failed to initial (E.G invalid haproxy.cfg options)
> it write the error to the screen.
> Is there option that HAproxy will write to log file when it failed to
> initial?
>
> Example:
> [root@proxy-au2 ~]# haproxy -f /usr/cti/conf/haproxy/haproxy.cfg
> [ALERT] 040/172141 (12460) : Starting proxy HAProxy_DirectDeposit: cannot
> bind socket [0.0.0.0:50025]
>
>
> In this example: HAProxy alert - cannot bind socket.
> How can I get this kind of alerts that stop HAProxy from starting to write
> log file ?
>
> Thanks
> Amir Yosef
>
>
>   ________________________________
> "This e-mail message may contain confidential, commercial or privileged
> information that constitutes proprietary information of Comverse Inc. or its
> subsidiaries. If you are not the intended recipient of this message, you are
> hereby notified that any review, use or distribution of this information is
> absolutely prohibited and we request that you delete all copies and contact
> us by e-mailing to: secur...@comverse.com. Thank You."

Reply via email to