Moode Forum
Remount stored NAS shares from cli? - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Remount stored NAS shares from cli? (/showthread.php?tid=819)



Remount stored NAS shares from cli? - challenge - 12-23-2018

Hello, 
is there an easy way to tell moode to remount the stored network shares and refresh the UI from command line interface?

Sometime it happens that my shares are down (they're virtualized on a server with a lot of other stuff).
As now I have a systemd job on moode that wakes up the server if ping is not successful and then, as a dirty fix, the server tells moode to reboot when samba share is ready. All of this via ssh.

It works, but a remount without reboot would be much better (and quicker).

I mean the "Re-mount all NAS sources" thing that we can trigger from the UI, I would like to automate that.

Thanks


RE: Remount stored NAS shares from cli? - TheOldPresbyope - 12-23-2018

(12-23-2018, 10:37 AM)challenge Wrote: Hello, 
is there an easy way to tell moode to remount the stored network shares and refresh the UI from command line interface?

Sometime it happens that my shares are down (they're virtualized on a server with a lot of other stuff).
As now I have a systemd job on moode that wakes up the server if ping is not successful and then, as a dirty fix, the server tells moode to reboot when samba share is ready. All of this via ssh.

It works, but a remount without reboot would be much better (and quicker).

I mean the "Re-mount all NAS sources" thing that we can trigger from the UI, I would like to automate that.

Thanks

Have a look at /var/www/inc/playerlib.php. The UI "Re-mount all NAS sources" event triggers an invocation of the function wrk_sourcemount() with the argument "mountall".

As my thesis adviser used to say, "the rest is left to the interested student."

Regards,
Kent


RE: Remount stored NAS shares from cli? - challenge - 12-23-2018

oh ok I got it now, I thought it was handled differently.