Every time my Asustor NAS restarts, I lose my configuration
Hi guys,
I'm an Asustor user, and I'm trying to make the last version of Ubooquity work on my NAS for a few days. I have followed this tutorial. I'm not very good in SSH, and it took me a while to understand. I finally changed a bit the contents of the tutorial to better match what I was doing.
Here is my start-stop.sh script :
#!/bin/sh
# ums files
UBOOQUITY_DIR=/volume1/home/admin/Ubooquity
UBOOQUITY_PID=$(ps ax | grep java | grep Ubooquity | awk '{ print $1 }')
case $1 in
start)
echo "Starting Ubooquity..."
java -Xmx256m -jar $UBOOQUITY_DIR/Ubooquity.jar -headless -remoteadmin -adminport 8079 1> /dev/null 2> /dev/null/ &
;;
stop)
echo "Killing Ubooquity..."
kill $UBOOQUITY_PID
;;
reload)
echo "Relaod Ubooquity..."
kill $UBOOQUITY_PID
sleep 3
java -Xmx256m -jar $UBOOQUITY_DIR/Ubooquity.jar -headless -remoteadmin -adminport 8079 1> /dev/null 2> /dev/null/ &
sleep 3
;;
info)
echo "Checking for Ubooquity PID..."
echo $UBOOQUITY_PID
;;
*)
echo "usage: $0 {start|stop|reload|info}"
exit 1
;;
esac
exit 0
As you can see, Ubooquity is now installed in /volume1/home/admin/Ubooquity. I changed the command line because Ubooquity doesn't seem to launch with the command given in the tutorial, and the access rights by using chmod. I also made the links with the /usr/local/etc/init.d folder
Ubooquity works, but I lose my configuration (users, shared folders etc...) every time my NAS restarts. It's as if I were starting from scratch. I have the feeling that each restart erases my configuration. However the file preferences.json is there.
Can you please help me with this ? I don't understand why Ubooquity behaves like this and it's driving me crazy ;-)
Customer support service by UserEcho