how to properly reload haproxy (from systemd + master-worker) ?

2020-02-02 Thread Илья Шипицин
Hello, I'm playing with RPM built here: https://copr.fedorainfracloud.org/coprs/roidelapluie/haproxy/ it is shipped with systemd unit: ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q ExecReload=/bin/kill -USR2 $MAINPID actually it works. however, if I add dataplane api: ---

Re: how to properly reload haproxy (from systemd + master-worker) ?

2020-02-02 Thread Tim Düsterhus
Ilya, Am 02.02.20 um 14:54 schrieb Илья Шипицин: > haproxy terminates on "systemctl reload haproxy" (which for example happens > from within dataplaneapi). Any error message logged in systemd-journald? Could it be that you hit this systemd bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93

Re: how to properly reload haproxy (from systemd + master-worker) ?

2020-02-02 Thread Илья Шипицин
yep, I did the same as users usually do :) I should have provided repro steps. Thank you, Tim, for your patience. so, repro steps [root@xxx ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@xxx ~]# systemd-219-67.el7_7.1.x86_64 haproxy-2.1.2 installed from https://copr.fed

Re: how to properly reload haproxy (from systemd + master-worker) ?

2020-02-02 Thread Tim Düsterhus
Ilya, Am 02.02.20 um 18:52 schrieb Илья Шипицин: > Feb 02 20:50:07 xxx haproxy[2851]: [NOTICE] 032/205007 (2851) : New worker > #1 (2897) forked > Feb 02 20:50:07 xxx haproxy[2851]: [ALERT] 032/205007 (2851) : Current > program 'api' (2896) exited with code 1 (Exit) The 'api' program (i.e. the da

Re: how to properly reload haproxy (from systemd + master-worker) ?

2020-02-02 Thread Илья Шипицин
however, I copy-pasted --reload-cmd "systemctl reload haproxy" from dataplane api docs. seems, at least someone (who wrote that docs) was able to run systemd + haproxy + dataplaneapi sure, port is used by dataplaneapi itselft. вс, 2 февр. 2020 г. в 22:58, Tim Düsterhus : > Ilya, > > Am 02.02.2

Re: how to properly reload haproxy (from systemd + master-worker) ?

2020-02-02 Thread Илья Шипицин
btw, is it possible to configure haproxy "to run either with or without configured program" ? actually, I'm ok if it will start even if dataplane api failed. вс, 2 февр. 2020 г. в 22:58, Tim Düsterhus : > Ilya, > > Am 02.02.20 um 18:52 schrieb Илья Шипицин: > > Feb 02 20:50:07 xxx haproxy[2851]: