Page 1 of 1

They delete configurations are after Reboot the Server

Posted: 09 Apr 2015, 01:27
by luisarcia
I have a problem with Madsonic , I have a QNAP that I installed tomcat, then install the Madsonic I set it up .

My server has an off time and encedido function to save energy, Madsonic is running, when you restart the server and access to Madsonic , all settings are reset , including the administrator password changed again make the password defect.

Can I get help ?

The program is very good but I found the problem. :?: :(

Re: They delete configurations are after Reboot the Server

Posted: 13 Apr 2015, 06:05
by DoCC
???

Re: They delete configurations are after Reboot the Server

Posted: 11 May 2015, 10:37
by Bever
Hi

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

#!/bin/sh
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.. :)

Good luck.

Bever

Re: They delete configurations are after Reboot the Server

Posted: 12 Jun 2015, 05:19
by addseo1115
That is good sugestions. :thumbsup: