Maybe first ExecReload command should be ExecReloadPre? вс, 2 февр. 2020 г., 19:56 Илья Шипицин <[email protected]>:
> 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: > > ------------<begin>----------------- > global > master-worker > > userlist controller > user dataplaneapi insecure-password xxx > > program api > command dataplaneapi --host 0.0.0.0 --port 5555 --haproxy-bin > /usr/sbin/haproxy --config-file /etc/haproxy/haproxy.cfg --log-to=file > --log-file=/var/log/dataplaneapi.log --log-level=trace --log-format=text > --reload-cmd "systemctl reload haproxy" --reload-delay 5 > ------------------------<end>----------------------- > > > haproxy terminates on "systemctl reload haproxy" (which for example > happens from within dataplaneapi). > > I guess, something is wrong with two above mentioned "ExecReload" commands. > any advice how to adjust them ? > > > thanks, > Ilya Shipitcin >

