Centos 7 – Part 5 – HAproxy systemctl script

vi /etc/systemd/system/haproxy
[Service]
ExecStart=/usr/sbin/haproxy
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=haproxy
User=root
Group=root
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target
systemctl enable haproxy
Share Button