MinimServer Forum
Waversa Mini Nas - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Waversa Mini Nas (/showthread.php?tid=3679)

Pages: 1 2


Waversa Mini Nas - geekuix - 29-11-2016 16:54

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


RE: Waversa Mini Nas - simoncn - 29-11-2016 18:51

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?


RE: Waversa Mini Nas - geekuix - 01-12-2016 04:00

Do i need to create another account if only have root?


RE: Waversa Mini Nas - geekuix - 01-12-2016 04:02

How can i run the script ./setup script without root privilege?


RE: Waversa Mini Nas - simoncn - 01-12-2016 17:29

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?


RE: Waversa Mini Nas - geekuix - 01-12-2016 20:16

(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.


RE: Waversa Mini Nas - geekuix - 01-12-2016 20:25

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#


RE: Waversa Mini Nas - simoncn - 01-12-2016 20:55

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?


RE: Waversa Mini Nas - geekuix - 01-12-2016 20:57

(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:~#


RE: Waversa Mini Nas - simoncn - 01-12-2016 21:12

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.