From 2f2929cf687addbcb873408cdaf103ca292ec6bb Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 5 Aug 2024 02:39:40 +0000 Subject: automatic import of haproxy --- haproxy.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 haproxy.service (limited to 'haproxy.service') diff --git a/haproxy.service b/haproxy.service new file mode 100644 index 0000000..a5524de --- /dev/null +++ b/haproxy.service @@ -0,0 +1,18 @@ +[Unit] +Description=HAProxy Load Balancer +After=network-online.target +Wants=network-online.target + +[Service] +EnvironmentFile=-/etc/sysconfig/haproxy +Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d" +ExecStartPre=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS +ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -f $CFGDIR -p $PIDFILE $OPTIONS +ExecReload=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS +ExecReload=/bin/kill -USR2 $MAINPID +KillMode=mixed +SuccessExitStatus=143 +Type=notify + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3