I have a Asustor NAS, but this is basic unix and should work on your NAS.
Have a look at this post:
Cant post links, but you can go to the asustor forum and search for madsonic. The thread is named "
[HowTo] Install Tomcat & Madsonic. A free Subsonic"
(Red. http://forum.asustor.com/viewtopic.php? ... onic#p5245
1. Basic, what you need to do is set up the server, and copy your madsonic directory to a place that wont be deleted on reboot.
2. Make a small script with a symbolic link that is activated before Tomcat start on boot. My tiny script look like this:
- Code: Select all
ln -s /volume1/Tomcat/madsonic-tomcat/madsonic /var
On my NAS Madsonic use /var/madsonic for settings. My problem, and probably yours, is that my NAS deletes /var on every reboot. What this tiny script does is linking my backup at "/volume1/Tomcat/madsonic-tomcat/madsonic " to "/var" before Tomcat and Madsonic start up. When Madsonic start up it find the old diretory linked at /var/madsonic, and it wont create a new one, thus keeping your settings. Every change you do to your Madsonic will be saved at /var/madsonic, but linked to "/volume1/Tomcat/madsonic-tomcat/madsonic". On every reboot it will be linked back to /var/madsonic and your setting will be "restored".
It's very important that the symbolic link is created before madsonic start up!
Look into your NAS documentation for a way to do this.
Sorry for my English..