Bug 243404 - net/haproxy: version 2.1: startup script does not go into the background
Summary: net/haproxy: version 2.1: startup script does not go into the background
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-17 01:41 UTC by Ralph Bacolod
Modified: 2020-01-17 02:29 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (demon)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Bacolod 2020-01-17 01:41:39 UTC
Installed haproxy 2.1 and I tried to start it up using
service start haproxy but it does not go into the background.

There is a post that mentions to add the daemon flag to the startup script but it does not work for me. I believe this only works for 1.8.
 
https://forums.freebsd.org/threads/haproxy-1-8-doesnt-go-into-background-during-boot-on-freebsd-11-2.70021/

I added the -D unto this line.
                                                                  ${haproxy_flags:="-q -f ${haproxy_config} -p ${pidfile} -D"}
Comment 1 Ralph Bacolod 2020-01-17 02:29:07 UTC
adding daemon under the global section on the haproxy.conf file has the same effect as adding the -D flag.