by hairlesshobo » Fri Dec 07, 2012 12:44 am
WOOHOO!!
I was able to figure out a workaround for this, and it was actually very simple. For anyone else who is interested in placing the subsonic database in a location other than C:\subsonic (obviously on windows) yet still run it as a windows service, follow these steps:
1. Install subsonic and specify the path to where you want to install subsonic (can be anywhere for this part).
2. Stop subsonic if it is running
3. Open the location where you installed the subsonic binaries
4. Open subsonic-service.exe.vmoptions with notepad and add the following line to the end of the file (replace with the path where you would like the subsonic data files to be located - this includes the database, log file, jetty related files, properties files and anything else normally in C:\subsonic):
-Dsubsonic.home=E:\subsonic
5. Move the contents of C:\subsonic to the path you specified in the file above.
6. Restart subsonic.
By passing this additional option to the service executable, it seems to tell subsonic where you would like the files placed, same as if you are starting subsonic with the .bat or .sh file directly.
I really hope this helps someone else!
-Steve