i´m using an selfmade NAS/Homeserver running Openmediavault 1.13 as storage for my music-collection and mounting the CIFS/SMB-Share in Volumio workes nicely. The problem is: the NAS isn´t running all the time and must be WOLed by the client (which works perfectly with an Openelec-RPi2 and an i3-based Mediaportal-HTPC).
My first Question is: how can i make Volumio send a WOL-Packet prior to playback?
My second Question is a little bit more complicated:
Same NAS is able to set itself to sleep-mode on various preconditions (i.e. checking for specific IP-adresses or monitoring the amount of data traffic). In my case the NAS checks if there are SMB/CIFS-Connections on Port 445. Server-Logs tell me that Volumio doesn´t seem to close this connection after playback has stopped, so the NAS stays awake. Again: Openelec and Mediaportal work perfectly on that topic.
Is there a way to close the connection automatically - lets say - 5 mins after playback has stopped?