Did you double check all your path statements in those files?Hi !
First of all thanks for this great tutorial, I followed it and it works like a charm.
However I have a little problem, the autostart function is not working, I can launch subsonic by typing "jexec 1 /usr/local/etc/rc.d/subsonic start" in a shell but it doesn't launch at startup.
I created the file " /usr/local/etc/rc.d/subsonic", i made it executable and added
in "/etc/rc.conf"
- # subsonic start up
- subsonic_enable="YES"
- subsonic_user="sonic"
- subsonic_bin="/home/sonic/subsonic/standalone/subsonic.sh"
Any ideas ?
% ls -al /usr/local/etc/rc.d/subsonic
To test it out you can locate the subsonic process with Top and kill it, then issue the above command and it should start subsonic and give you the pid of the process.
-rwxr-xr-- 1 root wheel 720 Nov 3 16:11 /usr/local/etc/rc.d/subsonic
: ${subsonic_enable="NO"} : ${subsonic_user="root"} : ${subsonic_bin="/usr/local/sbin/subsonic.sh"}
#!/bin/sh # # PROVIDE: subsonic # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # subsonic_enable (bool): Set to NO by default. # Set it to YES to enable it. . /etc/rc.subr name="subsonic" rcvar=${name}_enable subsonic_enable=${subsonic_enable-"NO"} pidfile="/var/run/${name}.pid" procname="/usr/local/openjdk7/bin/java" start_cmd="subsonic_start" start_precmd="rm -f $pidfile" stop_postcmd=$start_precmd subsonic_start() { echo "Starting Subsonic" export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin cd /home/sonic/subsonic/standalone sh subsonic.sh } load_rc_config $name run_rc_command "$1"
Here you go :
Code:$ echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin $
Updated 11/21 with a new more readable/follow-able format. Any feedback is always welcome, however it may take some time to sink in.
So now that there's a new beta out... I've been nervous about trying to upgrade to 4.9beta1 at the risk of messing something up. Do you know if just subsonic.jar needs to be replaced in the subsonic directory or is there more of a process?
I have been reading a few things about it and do not think it will be a big problem. However, I am going to wait for the real deal 4.9 before I start messing around, things are working pretty good.:)
If you try it let me know what happens please.
I am thinking about doing the whole war file when the new version comes out depending on their upgrade path.
I forgot to check the lame checkbox after the make command. (stupid of my I tried to select with enter) can anyone tell me how to do this afterwards?
Try "make config" and see if it presents you with the options again. To be clear, you will have to compile it over again starting with the command "make config".
# ffmpeg --version
# portsnap fetch update
# cd /usr/ports/multimedia/ffmpeg
# make
# make install clean
# rm /home/sonic/subsonic/transcode/ffmpeg
# ln /usr/local/bin/ffmpeg /home/sonic/subsonic/transcode/ffmpeg
ls -l /home/sonic/subsonic/transcode/ffmpeg
Please click the like button if you find this useful, it keeps me motivated and lets me know how useful this post was to users. Thanks
Update: 12/12/2013
They renamed some ports and also added ffmpeg 2to the ports tree. I have made a small change to the instructions and am compiling it now to see how it works. --- Tested and is working good streaming to my linux box.
[omitted for length]
Update 2:
It appears that the configure step already has Lame support turned on.:)This is great news because we should just be able to use pkg to install ffmpeg instead of compiling from scratch.
It does not appear to be packaged yet so that will have to wait.
I'll hold off on this until I've successfully upgraded to 4.9. After seeing the changelog for beta 3, I'm pretty excited. If you decide to upgrade when the final release is out, I'll be very happy if you make a post on the upgrade process :)
Sorry if the question has been answered, I skimmed this thread but didn't see it addressed. Is it completely necessary to create a new dataset for music/media? I already have tons of music in several different folders on my NAS, can I just use what I already have?
Thanks.