You are not logged in.

#1 2013-05-23 03:00:49

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

[SOLVED]When did minidlna commands change to minidlnad?

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?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2013-05-23 04:26:10

Legg83
Member
Registered: 2012-06-17
Posts: 6

Re: [SOLVED]When did minidlna commands change to minidlnad?

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

#3 2013-05-23 06:33:53

Jodell
Member
Registered: 2009-10-09
Posts: 285

Re: [SOLVED]When did minidlna commands change to minidlnad?

It changed in the last update. I believe it was an upstream change.

Offline

#4 2013-05-23 08:27:02

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED]When did minidlna commands change to minidlnad?

Weird, I had no problems when upgrading it, I changed nothing, it all just worked.


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#5 2013-05-23 10:52:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [SOLVED]When did minidlna commands change to minidlnad?

Offline

#6 2013-05-23 20:34:58

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [SOLVED]When did minidlna commands change to minidlnad?

I see. That does show why it stopped working. But how is it working for jrussell?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2013-05-23 20:47:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [SOLVED]When did minidlna commands change to minidlnad?

Inxsible wrote:

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

#8 2013-05-23 21:11:38

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED]When did minidlna commands change to minidlnad?

karol wrote:
Inxsible wrote:

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

#9 2013-05-23 21:12:31

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [SOLVED]When did minidlna commands change to minidlnad?

can you also post your service file?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2013-05-23 21:16:48

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED]When did minidlna commands change to minidlnad?

Inxsible wrote:

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

#11 2013-05-23 21:19:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [SOLVED]When did minidlna commands change to minidlnad?

Inxsible, the PIDFile you mentioned in the first post has been fixed by the maintainer: https://projects.archlinux.org/svntogit … c3853c22a4

Offline

#12 2013-05-23 21:22:29

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [SOLVED]When did minidlna commands change to minidlnad?

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

#13 2013-05-23 21:52:39

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [SOLVED]When did minidlna commands change to minidlnad?

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.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB