# Using mopidy on debian with systemd

**URL:** <https://discourse.mopidy.com/t/using-mopidy-on-debian-with-systemd/748>\
**Category:** Misc\
**Created:** [May 27, 2015, 11:16am UTC](https://discourse.mopidy.com/t/using-mopidy-on-debian-with-systemd/748 "2015-05-27T11:16:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matty265](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@matty265](https://discourse.mopidy.com/u/matty265)\
**Post date:** [May 27, 2015, 11:16am UTC](https://discourse.mopidy.com/t/using-mopidy-on-debian-with-systemd/748/1 "2015-05-27T11:16:57Z")

</div>

Hey,  
I recently installed mopidy on debian through the apt repository. But when I start the service using systemctl or mopidyctl it will not use the config in my ~/.config/mopidy, even though I changed the config to use in the .service file under /lib/systemd/system/mopidy.service. When I start the server manually (from the terminal simply using “mopidy”) everything works fine

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [May 27, 2015, 11:29am UTC](https://discourse.mopidy.com/t/using-mopidy-on-debian-with-systemd/748/2 "2015-05-27T11:29:05Z")

</div>

This is by design and follows the conventions of most Debian-packaged services. See [https://docs.mopidy.com/en/latest/debian/](https://docs.mopidy.com/en/latest/debian/) for details.

---

<div class="post-metadata">

**Author:** ![normn](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@normn](https://discourse.mopidy.com/u/normn)\
**Post date:** [September 2, 2015, 7:54pm UTC](https://discourse.mopidy.com/t/using-mopidy-on-debian-with-systemd/748/3 "2015-09-02T19:54:36Z")

</div>

You want to install mopidy as a user service in that case. Put the unit file under ~/.config/systemd/user and enable with systemctl --user command.

You do not need to use the User= declaration in this case since it will be set automatically.
