They delete configurations are after Reboot the Server

Post your Server Bug Report
luisarcia
Posts: 1
Joined: 07 Apr 2015, 05:04
Has thanked: 0
Been thanked: 0

They delete configurations are after Reboot the Server

Unread post 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. :?: :(
User avatar
DoCC
Contributor
Contributor
Posts: 211
Joined: 25 Feb 2014, 14:41
Has thanked: 40 times
Been thanked: 65 times

Re: They delete configurations are after Reboot the Server

Unread post by DoCC »

???
Bever
Posts: 1
Joined: 10 May 2015, 14:20
Has thanked: 0
Been thanked: 0

Re: They delete configurations are after Reboot the Server

Unread post 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
addseo1115
Has thanked: 0
Been thanked: 0

Re: They delete configurations are after Reboot the Server

Unread post by addseo1115 »

That is good sugestions. :thumbsup:
Post Reply