Mach5 / supersonic

Open-source web-based media streamer and jukebox fork of Subsonic. Supports MP3, OGG, AAC and other streamable audio and video formats. Runs on Windows, GNU/Linux and Mac using Java.
241 stars 60 forks source link

Linux startup script not working #49

Closed timoreimann closed 12 years ago

timoreimann commented 12 years ago

I just noticed that the Linux script supersonic.sh to start Supersonic (part of the subsonic-booter project) seems to have regressed during commit 7e8a120: The actual piece of script code that was executing Java and starting the service is part of the start() function. However, that function is only called in some kind of legacy mode as of now (when the number of arguments equals zero) which is not activate anymore.

@porkcharsui: I noticed you did the mentioned commit. I tried to fix it myself but did not have enough time yet to get an understanding of all the changes you've made. If you have more spare time than I do right now and a chance to fix things, feel free to assign the issue to yourself. Otherwise, I'll try to get back to the issue myself as soon as possible.

Another note: There are two invalid comparisons in the script using double equation signs (==) which must be turned into single equations (=).

timoreimann commented 12 years ago

My root cause analysis was wrong: I missed to see that the start function is called when the arguments are parsed. Still, starting Supersonic with the latest script isn't working for me.

Since I do have some time right now I'll see if I can investigate things more thoroughly.