Page 1 of 1
move c:\subsonic in windows

Posted:
Wed Jan 26, 2011 4:26 pm
by disgustipated
I have search a bit and can not find an answer how to do this.
I am looking to move the subsonic home directory that appears to be created by the installer in c:\subsonic. I was unable to find any entries in the registry or a config file in the service install directory that dictates where this subsonic home directory resides. i found instructions for linux and other releases but was unable to find a way to configure this in windows. am i just missing something in the install process or is this not configurable unless i compile it myself?
I want to do this because my c drive is a seperate hard drive for the OS, while my other drive is a 5 disk raid array

Posted:
Wed Jan 26, 2011 5:01 pm
by GJ51
Subsonic doesn't get all intertwined with the registry like the typical windows software install. That's one of the reasons I like SS so much. Just cut and paste C:\Subsonic to wherever you want it and restart the SS service. be sure to stop the service before you move the directory. If there are any issues, just do a fresh reinstall over the new location. If only all windows apps were this way.

Posted:
Wed Jan 26, 2011 5:12 pm
by disgustipated
i cut the c:\subsonic and moved it to the other drive but under another directory tree and it just recreated it under c. moved the old c:\subsonic to D:\subsonic and it still recreated it under the c drive. that didnt seem to work :\

Posted:
Wed Jan 26, 2011 5:23 pm
by disgustipated
im going to try messing around with the standalone version rather than the windows installer one

Posted:
Wed Jan 26, 2011 7:45 pm
by disgustipated
ok, looks like the standalone will work with how i want to configure the home directory but now i dont have the service running, just the .bat file with a command window :\

Posted:
Sat Feb 26, 2011 3:36 am
by disgustipated
http://forum.subsonic.org/forum/viewtop ... highlight=
this thread gave me what I needed.
however now im curious as to if its possible to do this for the tomcat war installation as well since when i was messing with it the responsiveness of the server seemed a little more peppy.

Posted:
Mon Feb 28, 2011 1:43 pm
by bushman4
If you're running tomcat 6 on windows, you set subsonic.home as follows.
1. Run tomcat6w.exe
2. Click on the Java tab
3. Add "-Dsubsonic.home=d:\subhome" to the Java Options field.
4. Click OK
This sets the subsonic.home system variable globally for all servlets in that tomcat instance.
Someday I'd love to see this able to be set per servlet, so you can run multiple servlets under one instance of tomcat, but because this is currently a system variable, that's not currently possible.
HTH,
Glenn

Posted:
Mon Feb 28, 2011 2:26 pm
by disgustipated
Fantastic!
Thank you!