Post Reply 
Waversa Mini Nas
29-11-2016, 16:54
Post: #1
Waversa Mini Nas
Hi Simon,

I have installed a Minimserver armv7 version on my Waversa Mini NAS and it is working well except the automatic startup. Do you know how can i get it working? I've used the ./setup.

Best regards,
Geekuix
Find all posts by this user
Quote this message in a reply
29-11-2016, 18:51
Post: #2
RE: Waversa Mini Nas
It is important to run the scripts as a regular user, not as root. If you have run any of the scripts as root, I suggest you uninstall MinimServer (as root), then reinstall it as a regular user and run minimserver/bin/setup as a regular user.

If this isn't the issue, does minimserver/bin/setup say that autostart is enabled?
Find all posts by this user
Quote this message in a reply
01-12-2016, 04:00
Post: #3
RE: Waversa Mini Nas
Do i need to create another account if only have root?
Find all posts by this user
Quote this message in a reply
01-12-2016, 04:02
Post: #4
RE: Waversa Mini Nas
How can i run the script ./setup script without root privilege?
Find all posts by this user
Quote this message in a reply
01-12-2016, 17:29
Post: #5
RE: Waversa Mini Nas
If the machine only has a root account and you are always running all scripts with root privilege, this should be OK. In this case, you don't need to create another account.

What output do you see when you run minimserver/bin/setup?
Find all posts by this user
Quote this message in a reply
01-12-2016, 20:16
Post: #6
RE: Waversa Mini Nas
(01-12-2016 17:29)simoncn Wrote:  If the machine only has a root account and you are always running all scripts with root privilege, this should be OK. In this case, you don't need to create another account.

What output do you see when you run minimserver/bin/setup?

This is what i have:
root@W-MINI-NAS:~/java/minimserver/bin# ./setup

MinimServer desktop integration is not available
MinimServer automatic startup is disabled

Do you want to change these settings (y/n)?
y
Enable automatic startup for MinimServer (y/n)?
y
root@W-MINI-NAS:~/java/minimserver/bin#


The process install seems to run perfectly but it does not launch automatically at startup.
Find all posts by this user
Quote this message in a reply
01-12-2016, 20:25
Post: #7
RE: Waversa Mini Nas
If i re run the command this is the output:

root@W-MINI-NAS:~/java/minimserver/bin# ./setup

MinimServer desktop integration is not available
MinimServer automatic startup is enabled

Do you want to change these settings (y/n)?
n
root@W-MINI-NAS:~/java/minimserver/bin#
Find all posts by this user
Quote this message in a reply
01-12-2016, 20:55
Post: #8
RE: Waversa Mini Nas
MinimServer configures automatic startup in one of the following locations, in order of preference:

/etc/extensions.d
/etc/init.d
/usr/lib/systemd/system

Do you see a file named minimserver or minimserver.service in any of these locations?
Find all posts by this user
Quote this message in a reply
01-12-2016, 20:57
Post: #9
RE: Waversa Mini Nas
(01-12-2016 20:55)simoncn Wrote:  MinimServer configures automatic startup in one of the following locations, in order of preference:

/etc/extensions.d
/etc/init.d
/usr/lib/systemd/system

Do you see a file named minimserver or minimserver.service in any of these locations?

I got it in /etc/init.d

root@W-MINI-NAS:~# more /etc/init.d/minimserver
#!/bin/sh
### BEGIN INIT INFO
# Provides: MinimServer
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop MinimServer
# Description:
### END INIT INFO

case "$1" in
start)
# run init file as sourced script
[ -f "/etc/init.d/minimserver-init.sh" ] && . "/etc/init.d/minimserver-init.sh"
[ -z "${INITLOGFILE}" ] && INITLOGFILE=/var/log/minimserver-init.log
( touch "${INITLOGFILE}" && rm "${INITLOGFILE}" 2>/dev/null ) || INITLOGFILE="/dev/null"
/home/root/java/minimserver/bin/startd init >>${INITLOGFILE} 2>&1
;;
stop)
PSOPT="-eo pid,user,vsz,stat,args"
ps ${PSOPT} >/dev/null 2>&1 || PSOPT=""
kill_time=0
max_kill_time=5
while :
do
PIDS="$(ps ${PSOPT} | grep mserver\.jar | grep -v grep | awk '{print $1}')"
if [ -z "${PIDS}" ]; then
break
fi
if [ ${kill_time} -eq 0 ]; then
kill ${PIDS} 2>/dev/null
elif [ ${kill_time} -eq ${max_kill_time} ]; then
kill -9 ${PIDS} 2>/dev/null
break
fi
kill_time=$((kill_time+1))
sleep 1
done
;;
*)
echo "Usage: $0 start|stop" 1>&2
exit 3
;;
esac
root@W-MINI-NAS:~#
Find all posts by this user
Quote this message in a reply
01-12-2016, 21:12
Post: #10
RE: Waversa Mini Nas
This means that MinimServer has identified your version of Linux as supporting System V init and has configured System V init to start MinimServer. For more information on System V init, see this page.

There are two possibilities:

1) MinimServer is starting but the startup is failing for some reason. You can check this by looking at the files minimserver/data/minimserver-out.log and minimserver/data/minimserver.log to see if there are any startup error messages.

2) MinimServer is not starting because your NAS doesn't fully support System V init. You would need to contact the NAS manufacturer to ask about this.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)