Since we switched to notify mode in the systemd unit file in commit d6942c8, haproxy won't start if the daemon keyword is present in the configuration.
Update the unit file with -db to disable background mode in all circumstances and add a note in the documentation. --- contrib/systemd/haproxy.service.in | 2 +- doc/configuration.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/systemd/haproxy.service.in b/contrib/systemd/haproxy.service.in index edbd4c2..d870db8 100644 --- a/contrib/systemd/haproxy.service.in +++ b/contrib/systemd/haproxy.service.in @@ -7,7 +7,7 @@ After=network.target # socket if you want seamless reloads. Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q -ExecStart=@SBINDIR@/haproxy -Ws -f $CONFIG -p $PIDFILE +ExecStart=@SBINDIR@/haproxy -Ws -db -f $CONFIG -p $PIDFILE ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q ExecReload=/bin/kill -USR2 $MAINPID KillMode=mixed diff --git a/doc/configuration.txt b/doc/configuration.txt index bb255be..cc397e1 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -680,7 +680,8 @@ crt-base <dir> daemon Makes the process fork into background. This is the recommended mode of operation. It is equivalent to the command line "-D" argument. It can be - disabled by the command line "-db" argument. + disabled by the command line "-db" argument. This option is ignored in + systemd mode. deviceatlas-json-file <path> Sets the path of the DeviceAtlas JSON data file to be loaded by the API. -- 2.7.4

