[Unit] Description=Start Mediaserver [Service] Type=dbus BusName=nl.miqra.MediaCore.Media Environment="HOME=/tmp" ExecStart=/usr/bin/startx /usr/sbin/mediaserver Restart=always RestartSec=10s KillMode=process TimeoutSec=infinity [Install] WantedBy=multi-user.target