Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4740

Upstart haproxy script

$
0
0

@dz0ny wrote:

Proper upstart init script for haproxy(that supports reload), can also be used for other PID1 managers or in legacy systems.

# haproxy

start on runlevel [2345]
stop on runlevel [!2345]

env CONF=/etc/haproxy/haproxy.cfg

nice 10
respawn
respawn limit 2 5
reload signal USR2

pre-start script
    /usr/sbin/haproxy -c -q -f $CONF
end script

post-stop script
    rm -f /var/run/haproxy.pid
end script

exec /usr/sbin/haproxy -Ds -f $CONF -p /var/run/haproxy.pid

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>