Post Reply 
Autostart on headless NAS with FFP
18-09-2014, 14:19 (This post was last modified: 18-09-2014 14:23 by alexinc.)
Post: #7
RE: Autostart on headless NAS with FFP
the solution is way easier than expected and i have to give mijzelf (developer of ffp) full credit for analyzing and solving the cause! of course a big THX to you too for taking the time and minimserver in general! Smile i'm still loving it that much, serving my audio the way i want it to be...
i added the java.sh line to my minimserver startup script!

Mijzelf Wrote:I never heard of minimserver, so I downloaded it and looked at the startscript startd. It calls java.

Code:
cd "${MINIMDIR}/data"LD_LIBRARY_PATH="${MINIMDIR}/libsys" java -jar "${MINIMDIR}/lib/mserver.jar" --noconsole --nohup "$@" </dev/null >minimserver.out 2>&1 &

When I looked at Uli's instructions for java on ffp, I found this:

now put it permanently into the environment variables:

Code:
echo "export PATH=/ffp/opt/java/jre/bin:\$PATH" >> /ffp/etc/profile.d/java.sh
chmod a+x /ffp/etc/profile.d/java.sh

So if you followed these instructions, java cannot be found, unless the java.sh script is executed, which is only done in a 'normal' shell. Maybe you can just provide the full path of java in startd. Or you can add a line

Code:
. /ffp/etc/profile.d/java.sh

to your startscript, before

Code:
run_rc_command "$1"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Autostart on headless NAS with FFP - alexinc - 18-09-2014 14:19

Forum Jump:


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