On Thu, Mar 07, 2019 at 09:38:01PM +0530, Badari Prasad wrote:
> Hi
>  RHEL 7.4 comes with haproxy 1.5.18, I wanted use latest version of
> haproxy 1.9.4.  So source code comes with haproxy.service.in [
> https://github.com/haproxy/haproxy/blob/master/contrib/systemd/haproxy.service.in]
> .
> Executing make in the dir contrib/systemd/ creates haproxy.service. I tried
> to copy this generarted file in : /usr/lib/systemd/system/haproxy.service .
> With this I see lots of errors :
> #systemctl status haproxy.service
> ● haproxy.service - HAProxy Load Balancer
>    Loaded: loaded (/usr/lib/systemd/system/haproxy.service; disabled;
> vendor preset: disabled)
>    Active: inactive (dead)
> 
> Mar 07 03:13:47 local systemd[1]:
> [/usr/lib/systemd/system/haproxy.service:9] Executable path is not
> absolute, ignoring: @SBINDIR@/haproxy -f $CONFIG -c -q
> Mar 07 03:13:47 local systemd[1]: haproxy.service lacks both ExecStart= and
> ExecStop= setting. Refusing.
> Mar 07 03:13:47 local systemd[1]:
> [/usr/lib/systemd/system/haproxy.service:3] Failed to add dependency on
> =syslog.target, ignoring: Invalid argument
> Mar 07 03:13:47 local systemd[1]:
> [/usr/lib/systemd/system/haproxy.service:7] Executable path is not
> absolute, ignoring: @SBINDIR@/haproxy -f $CONFIG -c -q
> Mar 07 03:13:47 local systemd[1]:
> [/usr/lib/systemd/system/haproxy.service:8] Executable path is not
> absolute, ignoring: @SBINDIR@/haproxy -Ws -f $CONFIG -p $PIDFILE
> Mar 07 03:13:47 local systemd[1]:
> [/usr/lib/systemd/system/haproxy.service:9] Executable path is not
> absolute, ignoring: @SBINDIR@/haproxy -f $CONFIG -c -q
> Mar 07 03:13:47 local systemd[1]: haproxy.service lacks both ExecStart= and
> ExecStop= setting. Refusing.
> Mar 07 03:29:51 local systemd[1]: Unit haproxy.service cannot be reloaded
> because it is inactive.
> Mar 07 09:28:57 local systemd[1]: Unit haproxy.service cannot be reloaded
> because it is inactive.
> Mar 07 09:35:45 local systemd[1]: Unit haproxy.service cannot be reloaded
> because it is inactive.
> 
> 
> Have attached haproxy.service for reference. Can I get some pointers to
> resolve this issue.
> 
> Thanks
>  badari

Looks like you copied the haproxy.service.in instead of the haproxy.service 
generated.

"@SBINDIR@" is a macro that is present in the .in but replaced in the .service.

-- 
William Lallemand

Reply via email to