autostart Subsonic on Openfiler NAS

Need help? Post your questions here.

Moderator: moderators

autostart Subsonic on Openfiler NAS

Postby chuckles » Thu Aug 16, 2012 2:10 am

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
chuckles
 
Posts: 30
Joined: Mon Jan 24, 2011 7:54 pm

Re: autostart Subsonic on Openfiler NAS

Postby chuckles » Tue Aug 21, 2012 1:44 pm

Any Linux gurus out there that can lend a hand?
chuckles
 
Posts: 30
Joined: Mon Jan 24, 2011 7:54 pm

Re: autostart Subsonic on Openfiler NAS

Postby bushman4 » Tue Aug 21, 2012 1:46 pm

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
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: autostart Subsonic on Openfiler NAS [SOLVED]

Postby chuckles » Tue Aug 21, 2012 3:28 pm

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.
chuckles
 
Posts: 30
Joined: Mon Jan 24, 2011 7:54 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 35 guests