Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install on terastation intel atom
16-08-2014, 22:05 (This post was last modified: 16-08-2014 22:07 by hpapen.)
Post: #21
RE: Install on terastation intel atom
(16-08-2014 21:53)simoncn Wrote:  In most versions of Linux, you don't need to do anything with it. Linux will run this file automatically on startup and shutdown. Do you know what version of Linux you have in your NAS?

uname -a returns Linux paapnas 2.6.31.8-atom_d510

cat /proc/version
Linux version 2.6.31.8-atom_d510 (root@build3) (gcc version 4.2.0 20070413 (prerelease)) #2 SMP Wed Mar 6 18:49:56 JST 2013
Find all posts by this user
Quote this message in a reply
17-08-2014, 09:09
Post: #22
RE: Install on terastation intel atom
(16-08-2014 22:05)hpapen Wrote:  uname -a returns Linux paapnas 2.6.31.8-atom_d510

cat /proc/version
Linux version 2.6.31.8-atom_d510 (root@build3) (gcc version 4.2.0 20070413 (prerelease)) #2 SMP Wed Mar 6 18:49:56 JST 2013

This isn't giving much away (just "Linux"). If minimserver/bin/setup asks you whether you want to enable automatic startup, the init.d approach should work.
Find all posts by this user
Quote this message in a reply
17-08-2014, 10:35
Post: #23
RE: Install on terastation intel atom
(17-08-2014 09:09)simoncn Wrote:  This isn't giving much away (just "Linux"). If minimserver/bin/setup asks you whether you want to enable automatic startup, the init.d approach should work.
I did try and I choose automatic, restarted Nas but no it does not work.
Find all posts by this user
Quote this message in a reply
17-08-2014, 12:07
Post: #24
RE: Install on terastation intel atom
(17-08-2014 10:35)hpapen Wrote:  I did try and I choose automatic, restarted Nas but no it does not work.

You might be able to get more information about the type of Linux distro from:

cat /etc/issue

After the failed automatic start, is there anything in the /usr/local/minimserver/data/minimserver.out file?
Find all posts by this user
Quote this message in a reply
17-08-2014, 14:19
Post: #25
RE: Install on terastation intel atom
(17-08-2014 12:07)simoncn Wrote:  You might be able to get more information about the type of Linux distro from:

cat /etc/issue
The best I could reproduce is I believe the kernel version as stated before. This cat only displays BUFFALO INC. TeraStation series. The only other thing I know it is a "debian flavour"


(17-08-2014 12:07)simoncn Wrote:  After the failed automatic start, is there anything in the /usr/local/minimserver/data/minimserver.out file?
No, only the stopping on shutdown is recorded
Find all posts by this user
Quote this message in a reply
17-08-2014, 16:26
Post: #26
RE: Install on terastation intel atom
(17-08-2014 14:19)hpapen Wrote:  No, only the stopping on shutdown is recorded

Is this the previous shutdown before the NAS was rebooted? You should be able to tell this from the timestamp on the file.
Find all posts by this user
Quote this message in a reply
17-08-2014, 18:06
Post: #27
RE: Install on terastation intel atom
(17-08-2014 16:26)simoncn Wrote:  Is this the previous shutdown before the NAS was rebooted? You should be able to tell this from the timestamp on the file.
Yes it is.
I checked the procedure:
stop minim, setup yes to automatic, reboot, check -no minim started, nothing in .out, startd - yes recorded in .out
Find all posts by this user
Quote this message in a reply
17-08-2014, 20:39
Post: #28
RE: Install on terastation intel atom
(17-08-2014 18:06)hpapen Wrote:  Yes it is.
I checked the procedure:
stop minim, setup yes to automatic, reboot, check -no minim started, nothing in .out, startd - yes recorded in .out

If minimserver.out exists and is empty after a failed automatic startup, this probably means that /usr/local/bin isn't on the PATH when the init.d scripts are run. This would mean the java executable couldn't be found. You can work around this by editing the startd script to change "java" to "/usr/local/bin/java".
Find all posts by this user
Quote this message in a reply
17-08-2014, 21:51
Post: #29
RE: Install on terastation intel atom
(17-08-2014 20:39)simoncn Wrote:  If minimserver.out exists and is empty after a failed automatic startup, this probably means that /usr/local/bin isn't on the PATH when the init.d scripts are run. This would mean the java executable couldn't be found. You can work around this by editing the startd script to change "java" to "/usr/local/bin/java".
I changed Java to LD_LIBRARY_PATH="${MINIMDIR}/libsys" /usr/local/bin/java -jar "${MINIMDIR}/lib/mserver.jar" --noconsole --nohup "$@" >minimserver.out 2>&1 & (and I now understand why you asked for .out)
I looked in the /etc/init.d/ There is a file minimserver. All other script files have ext .sh
Find all posts by this user
Quote this message in a reply
17-08-2014, 22:08 (This post was last modified: 17-08-2014 22:08 by simoncn.)
Post: #30
RE: Install on terastation intel atom
(17-08-2014 21:51)hpapen Wrote:  I changed Java to LD_LIBRARY_PATH="${MINIMDIR}/libsys" /usr/local/bin/java -jar "${MINIMDIR}/lib/mserver.jar" --noconsole --nohup "$@" >minimserver.out 2>&1 & (and I now understand why you asked for .out)

What happened with this change? What was written to minimserver.out? Even if this file was reset to empty, this is important information.

Quote:I looked in the /etc/init.d/ There is a file minimserver. All other script files have ext .sh

On Linux, it doesn't matter whether a script has a .sh extension. It does matter that the script is marked as an executable file (ls -l shows rwxr-xr-x) and that it starts with the line #!/bin/sh.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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