You are not logged in.

#1 2013-06-01 12:37:05

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

mpd starts before NAS is mounted.

hi, i am having a bit of an issue.
I have a raspberry pi set up with mpd. On this r-pi i mount my NAS via sshfs on boot.

Problem now is, that my mpd startup fails, because the mountpoint is not ready yet.

the mount works fine:

Jan 01 01:00:05 alarmpi systemd[1]: Starting home-carnager-Music.automount.
Jan 01 01:00:05 alarmpi systemd[1]: Set up automount home-carnager-Music.automount.

but mpd does not:

Jun 01 12:57:04 alarmpi mpd[316]: Failed to stat directory "/home/carnager/Music/Rips": No such file or directory
Jun 01 13:20:42 alarmpi systemd[1]: mpd.service: main process exited, code=dumped, status=6/ABRT

I tried to put

After=home-carnager-Music.automount

to my mpd.service file, but it does not help.


Any ideas?


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#2 2013-06-01 13:58:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: mpd starts before NAS is mounted.

Because you need to order it after the mount, not the automount.

Offline

#3 2013-06-01 14:28:51

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd starts before NAS is mounted.

falconindy wrote:

Because you need to order it after the mount, not the automount.

If by this you mean

After=home-carnager-Music.mount

it doesnt work.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#4 2013-06-01 14:54:43

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd starts before NAS is mounted.

actually i am not sure if its related now. i changed mpds music_dir to something that is already present but it still doesnt start


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB