Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm restarting HAproxy (on Ubuntu Server x64 14.04) with the following command

haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -st $(cat /var/run/haproxy.pid)

However, when actually executing this command, I get the following error

cat: /var/run/haproxy.pid: No such file or directory

Can anybody shed some light into the issue here?

share|improve this question

1 Answer 1

The /var/run/haproxy.pid file does not exist. There could be several reasons for that.

  • haproxy is not running at all
  • the pidfile got los
  • haproxy writes no pidfile at all
  • haproxy is configured to store the pidfile at a different location
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.