`systemd` user unit
Prev | Chapter 2. Installation | Next

## `systemd` user unit

You can launch MPD as a `systemd` user unit. The service file will only be installed when MPD was configured with `--with-systemduserunitdir=/usr/lib/systemd/user` or `--with-systemduserunitdir=$HOME/.local/share/systemd/user`.

Once the user unit is installed, you can start and stop MPD like any other service:

    systemctl --user start mpd

To auto-start MPD upon login, type:

    systemctl --user enable mpd

Prev | Up | Next
`systemd` socket activation | Home | Chapter 3. Configuration