For your first question, you need to study and understand "run levels" on Suse. Like everything else concerning ofbiz, you need to make adjustments to the start/stop scripts to make it run in your environment. The existing scripts were meant as examples.
Same thing for your second question. You can set the JAVA_HOME environment variable to wherever your java distribution exists. In my case, I use the Sun JDK, and I just happen to place it in /opt/java, and I adjusted JAVA_HOME as required. You really have to figure things out on your own (i.e. where yast installed MySQL) so you can set up the system to run the way you need. Mike On Thu, Aug 2, 2012 at 6:33 PM, Ted Byers <r.ted.by...@gmail.com> wrote: > Well, actually, I have studied > https://cwiki.apache.org/OFBIZ/how-to-run-ofbiz-as-a-service.html, so I > have > the general idea. But, there remain two questions. > > 1) That page says to copy rc.ofbiz to /etc/init.d/ofbiz. I did that. But > then, at the end of the instructions, it says" Finally, we are ready to > tell > our Operating system, to execute this script automatically at certain > points > during OS startup/shutdown. How we do this depends on our specific Linux > Distro. I have only put instructions here for those distros I am familiar > with. A generic point is that it is IMPORTANT here that your OFBiz starts > AFTER any services on which it depends. Typically this is your DB server. > If you use MySQL for instance, and MySQL starts with sequence 20, then > OFbiz > must start with sequence 21 or higher. Invert this logic for stopping." > I > only started studying Suse Linux seriously a few months ago (and in > parallel > with studying Ubuntu), so this is a bit further along in managing a system > than I have progressed to date. And, it seems the instructions for each > version of Linux are different, I suppose that is just to make things > 'interesting', right? :-) > > Now, I haven't figured out, yet, how to tell OFBiz to use MySQL (I had the > full LAMP stack installed, although I did nothing but give a default, > cryptographically secure, password. This is actually related to my second > question. The author of that web page identified above gave instructions > for every Linux distribution I have heard of EXCEPT Suse. What would be > the > right instructions for Suse? > > 2) Near the start of startofbiz.sh, I see: > > if [ -f "JAVA_HOME/bin/java" ]; then > JAVA="JAVA_HOME/bin/java" > else > JAVA=java > fi > > Near the beginning of rc.ofbiz, I see: > > JAVA_BINARY=/usr/java/j2sdk1.4.2/bin/java > > I know that is wrong for my system, because I have the 1.6 version of > openJDK (and the path as shown does not exist on my system), but, as I used > YaST to install it, I have not yet been able to find it. Similarly, the > instructions for configuring OFBiz to use MySQL leave me with a problem in > that, again, I used YaST to install the java MySQL connector, and thus, I > do > not know where YaST put it. > > For ofbiz, in /etc/init.d, can I just shorten the assignment to JAVA_BINARY > to "JAVA_BINARY=java"? Or perhaps initialize JAVA_BINARY in the same way > that JAVA is initialized in startofbiz.sh? After all, as any user, in the > bash shell, I can invoke 'java -version' and get output that says the > version is 1.6.0_24, that it is from OpenJDK, and that it is a 64 bit > build; > and more importantly, startofbiz.sh does in fact start it properly, apart > from the annoyance of it taking over the bash shell session (but that is > not > a concern as I require it to run as a service if and when I deploy it). > > Any insights you can provide on these two questions, and anything else I > ought to edit in rc.ofbiz, would be greatly appreciated. > > Thanks > > Cheers > > Ted > > > >