Post Reply 
WD MyCloud and Minimserver
16-03-2018, 22:06 (This post was last modified: 16-03-2018 22:12 by Soli.)
Post: #59
RE: WD MyCloud and Minimserver
(04-02-2018 13:09)Tbanks103 Wrote:  I can't see that new thread, but I have made the init process on my MyBookLive kick off the minimserver.

Here's the net effect of what I did (see below for the twists along the way):

Create the attached file as /etc/init.d/minimserver - note that it refers to the location of the minimserver installation - this may need editting. Then, at the comand prompt:

MyBookLive:~# chmod 755 /etc/init.d/minimserver
MyBookLive:~# ln -s ../init.d/minimserver /etc/rc2.d/S99minimserver


This creates a link from /etc/rc2.d to the executeable file in /etc/init.d
Executeables in rc2.d are run at the second phase of reboot and S99... files are invoked at the last gasp (ie 99th out of 99).

After creating the file & permission & link, the command:

MyBookLive:~# /etc/rc2.d/S99minimserver start

Will start minimserver, and this will be invoked at reboot.

Now the twists: at first, I created the /etc/init.d/minimserver file with the contents "cd /shares/Public/Minim/minimserver/bin && ./startd ; cd -" and on running it for the first time, got the message
Migrating autostart configuration
This is issued by minim, and the file is replaced with contents close to the attached file. However, the PATH doesn't contain Java, so I put this in: "PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Thanks to all for helping make this work, special thanks to Simon.
Greetings. I forgot all about it. I just logged in today to start a new thread and saw this.
What I did was to verify that mybooklive actually did parse SYSV files. After I did that, I knew that wasn't the reason Minimserver didn't automatically start.
Earlier in the thread someone just made a symlink to java. (if /opt/Java is where you extracted java, and the version is ejre1.7.0_75) "ln -s /opt/Java/ejre1.7.0_75/bin/java /usr/local/bin/java". For some reason that works fine when manually starting Minimserver but not automatically. There probably a technical reason for that, but I don't really care. (but it was probably the path missing in either the SYSV file or conf)

The solution is simple:
Install our custom java the normal way!
#update-alternatives --install /usr/bin/java java /opt/Java/ejre1.7.0_75/bin/java 100

That's all!

To verify
#update-alternatives --display java

Then just run the Minimserver startd command if you haven't already

#/opt/minimserver/bin/startd

No need to mess around with anything else whatsoever.

I'm also running a pure Debian 8 on my newer MyCloud gen2, it too works perfectly with Minimserver!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WD MyCloud and Minimserver - wallydaw - 31-03-2015, 12:18
RE: WD MyCloud and Minimserver - Soli - 24-09-2016, 02:12
RE: WD MyCloud and Minimserver - Soli - 21-10-2016, 13:35
RE: WD MyCloud and Minimserver - Soli - 07-04-2017, 20:21
RE: WD MyCloud and Minimserver - Soli - 16-03-2018 22:06
RE: WD MyCloud and Minimserver - Soli - 15-09-2016, 15:16
RE: WD MyCloud and Minimserver - Soli - 16-09-2016, 02:01
RE: WD MyCloud and Minimserver - Soli - 20-10-2016, 05:49
RE: WD MyCloud and Minimserver - Soli - 21-10-2016, 02:31

Forum Jump:


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