Page 1 of 1

autostart Subsonic on Openfiler NAS

PostPosted: Thu Aug 16, 2012 2:10 am
by chuckles
I have installed the latest beta of Subsonic on a Openfiler NAS and everything is working splendidly except I can't get Subsonic to start automatically after a reboot.

/etc/rc.local looks like this:
Code: Select all
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

sh /var/subsonic/subsonic.sh


This does not work and I see this in subsonic_sh.log:
Code: Select all
/var/subsonic/subsonic.sh: line 113: java: command not found


Of course when I run the script manually, it works fine.

What am I doing wrong?

Thanks,
A

Re: autostart Subsonic on Openfiler NAS

PostPosted: Tue Aug 21, 2012 1:44 pm
by chuckles
Any Linux gurus out there that can lend a hand?

Re: autostart Subsonic on Openfiler NAS

PostPosted: Tue Aug 21, 2012 1:46 pm
by bushman4
If I had to guess the path variable is not set correctly, but I'm not a linux guy.

Have you tried changing that line in the script file to point to the explicit location of the java executable?

Glenn

Re: autostart Subsonic on Openfiler NAS [SOLVED]

PostPosted: Tue Aug 21, 2012 3:28 pm
by chuckles
Thanks for your suggestion.

I found the location of Java and changed:
Code: Select all
# JAVA=java

to
Code: Select all
JAVA=/usr/lib/jvm/sun-java-5.0u17/bin/java

and all is good now.