# Upgrade from 1.5 to 2.1 - Active: inactive (dead)

**URL:** <https://discourse.haproxy.org/t/upgrade-from-1-5-to-2-1-active-inactive-dead/4637>\
**Category:** Help!\
**Created:** [December 17, 2019, 9:50pm UTC](https://discourse.haproxy.org/t/upgrade-from-1-5-to-2-1-active-inactive-dead/4637 "2019-12-17T21:50:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [December 17, 2019, 11:43pm UTC](https://discourse.haproxy.org/t/upgrade-from-1-5-to-2-1-active-inactive-dead/4637/2 "2019-12-17T23:43:36Z")

</div>

You should uninstall haproxy 1.5 cleanly, so that when you do make a mistake while installing the new release, you get a proper error message instead of strange behavior.

When you did that, double check that there are no files like `/usr/lib/systemd/system/haproxy.service`, `haproxy` and especially `/usr/sbin/haproxy-systemd-wrapper`.

> [@harporb](#):
>
> cp /usr/local/sbin/haproxy /usr/bin

Please don’t do copy the executable around, what’s wrong with `/usr/local/sbin/`?

Once you have a clear situation, install the system unit file that ships with haproxy as per:

> [@Failing to start with systemd and unexplained issues](https://discourse.haproxy.org/t/failing-to-start-with-systemd-and-unexplained-issues/849/4):
>
> Do not use the init.d file. You are using systemd, you have use the systemd unit file and wrapper, not the init.d script. rm /etc/init.d/haproxy cd contrib/systemd cp haproxy.service.in /lib/systemd/system/ systemctl daemon-reload systemctl enable haproxy systemctl start haproxy systemctl status haproxy Note: Haproxy 1.8 and later needs to be compiled with USE\_SYSTEMD=1 for the provided systemd unit file to work (needs systemd header files, that would be libsystemd-dev on Debian/Ubuntu or sys…

Once you have done all this, follow the procedure here to setup systemd:

---

_[View the full topic](https://discourse.haproxy.org/t/upgrade-from-1-5-to-2-1-active-inactive-dead/4637)._
