MinimServer Forum
Start server if external storage not mounted - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Start server if external storage not mounted (/showthread.php?tid=3190)



Start server if external storage not mounted - otakar - 17-05-2016 09:01

Simon - suggestion for improvement software.

My configuration on NAS Synology:
CONTENTDIR = {/ VOLUME1 / Music} {/ volume2 / Classic} {/ volumeUSB1 / usbshare / 2Music}

If the USB drive is OFF so the SERVER does NOT WORK - ERROR...
Please ENABLE START even if external storage not mounted.
THANK YOU!!
otakar


RE: Start server if external storage not mounted - simoncn - 17-05-2016 11:45

What is the exact error message that you are seeing?


RE: Start server if external storage not mounted - otakar - 17-05-2016 20:57

turn ON USB HDD on NAS Synology ds213+
echo "prop contentDir={/volume1/Music}{/volume2/Classic}{/volumeUSB1/usbshare/2Music}" > /volume1/@tmp/minimstdinpipe
echo restart > /volume1/@tmp/minimstdinpipe

ALL OK:
Media server status for MinimServer[ds]: Started Refresh status Rescan
You have selected the following content directories:
/volume1/Music
/volume2/Classic
/volumeUSB1/usbshare/2Music

NEXT:
NAS Synology OFF
USB HDD OFF
NAS Synology START

WEB PAGE ip:9790
Media server status for MinimServer[ds]: Error
Content directory error: /volumeUSB1/usbshare/2Music
You have selected the following content directories:
/volume1/Music
/volume2/Classic
/volumeUSB1/usbshare/2Music

minimserver-out.log
>>starting MinimServer[ds]
>MinimServer: content directory error: /volumeUSB1/usbshare/2Music
MinimServer error: now stopped, use 'restart' or 'exit'

minimserver.config
minimserver.monitorUDN = ……………….
minimserver.udn = …………………….
minimserver.lastIndexTags = Artist, Date, Genre, All Artists, Composer, Conductor, Orchestra
minimserver.tagOptions = Album.sortTags\={Album, Artist}
minimserver.systemUpdateID = 28
minimserver.previousAlbumArtistDisplayRole = true
minimserver.tagCustom = AlbumArtist.displayRole\={artist}, Composer.displayRole\={artist}
minimserver.tagFormat = Artist.displayFormat\={$artist$orchestra$conductor}
minimserver.configVersion = 0.8.231
minimserver.license = 0.8.1
minimserver.contentDir = /volume1/Music\n/volume2/Classic\n/volumeUSB1/usbshare/2Music
minimserver.startupScan = false

Please ENABLE START SERVER even IF external storage not mounted..


RE: Start server if external storage not mounted - simoncn - 20-05-2016 18:00

I have made a change in update 85 (now available) to change this error to a warning if a content directory is not available and at least one other content directory is available.