Minidlna: How to Auto Start

To setup the auto starting of minidlna on a linux machine running systemd create a file /etc/systemd/system/minidlna.service and enter the following:

[Unit]
Description=minidlna server
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/sbin/minidlnad \
  -R -S -f /home/pi/.minidlna/minidlna.conf

[Install]
WantedBy=multi-user.target

You should now be able to start minidlna running with the following command:

$ systemctl start minidlna

In order to set the system up to auto start minidlna when powering up enter the following command

$ systemctl enable minidlna