You are not logged in.
Now when I run
sudo minidlna -R
I get a
sudo: minidlna : Command not found
Using sudo minidlnad -R works. When did this change ? I did notice the upgrade of minidlna last week
Also minidlna would fail to start even when I did a
sudo systemctl start minidlna
I found that this was because the minidlna.service file was pointing to a different PIDFile in the Execstart and the PIDFile element
[Unit]
Description=minidlna server
After=network.target
[Service]
Type=forking
User=nobody
ExecStart=/usr/sbin/minidlnad -P /run/minidlna/minidlna.pid
PIDFile=/var/run/minidlna/minidlna.pid
[Install]
WantedBy=multi-user.target
Changing the PIDFile line to
PIDFile=/run/minidlna/minidlna.pid
allowed me to start up minidlna successfully. Can someone using minidlna confirm this before I open a bug report for it?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I can confirm this.
I use minidlna and just noticed that it failed to start. I could not find any meaningful logs and came here looking for help. Thankfully this worked for me.
Offline
It changed in the last update. I believe it was an upstream change.
Offline
Weird, I had no problems when upgrading it, I changed nothing, it all just worked.
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
https://projects.archlinux.org/svntogit … 14450e84c6 (at the very bottom)
Offline
https://projects.archlinux.org/svntogit … 14450e84c6 (at the very bottom)
I see. That does show why it stopped working. But how is it working for jrussell?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
karol wrote:https://projects.archlinux.org/svntogit … 14450e84c6 (at the very bottom)
I see. That does show why it stopped working. But how is it working for jrussell?
No idea. If jrussell shares more info, e.g.
type -p minidlna
pacman -Q minidlna
maybe we can figure this out.
Offline
Inxsible wrote:karol wrote:https://projects.archlinux.org/svntogit … 14450e84c6 (at the very bottom)
I see. That does show why it stopped working. But how is it working for jrussell?
No idea. If jrussell shares more info, e.g.
type -p minidlna pacman -Q minidlna
maybe we can figure this out.
Sure,
admin@russell-server ~ % type -p minidlna
minidlna not found
admin@russell-server ~ % type -p minidlnad
minidlnad is /usr/bin/minidlnad
admin@russell-server ~ % sudo pacman -Q minidlna
minidlna 1.1.0-2
admin@russell-server ~ % sudo systemctl status minidlna.service
minidlna.service - minidlna server
Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)
Active: active (running) since Thu 2013-05-23 15:32:02 SAST; 7h ago
Process: 263 ExecStart=/usr/bin/minidlnad -P /run/minidlna/minidlna.pid (code=exited, status=0/SUCCESS)
Last edited by jrussell (2013-05-23 21:13:18)
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
can you also post your service file?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
can you also post your service file?
admin@russell-server ~ % sudo cat /usr/lib/systemd/system/minidlna.service
[Unit]
Description=minidlna server
After=network.target
[Service]
Type=forking
User=nobody
ExecStart=/usr/bin/minidlnad -P /run/minidlna/minidlna.pid
PIDFile=/run/minidlna/minidlna.pid
[Install]
WantedBy=multi-user.target
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Inxsible, the PIDFile you mentioned in the first post has been fixed by the maintainer: https://projects.archlinux.org/svntogit … c3853c22a4
Offline
Im pretty sure I also had minidlna 1.1.0-1 (as apposed to 1.1.0-2) with no problems, was Inxsible's problem fixed with 1.1.0-2? Perhaps I just didn't restart between the upgrades.
Maybe the service file was wrong for 1.1.0-1
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
ok... so I guess when I get home today and upgrade.. everything should just work. I just got caught in the middle when the PIDFile was broken in one of the commits which was subsequently fixed by the maintainer.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline