Systemd and XMMS2 - Is this how it's done?

*edit* - oh damnit, wrong forum. Move please? - thanks jason---

I've been trying to convert XMMS2's daemon to a systemd service file while still being able to use the current /etc/conf.d/xmms2d.conf.

The issue here is that xmms2's daemon needs to be run as the user and does not have a feature to drop to a user after starting (like mpd). So we must tell systemd to run this daemon as a certain user. Important to note is that is it not possible to pass a $VAR from EnvironmentFile to User=. We can pass $VAR to ExecStart=, which is what the second option relies on.

After some digging and hanging in #systemd, I've come up with 2 options:

1. using an instanced service./lib/systemd/system/xmms2d@.service

The service has to be started by doing systemctl start xmms2d@<username>.service.