systemd.service startup service script file?

2015-04-13 Thread Chris Clark
does anyone have one of these... the wiki has a very much out dated init.d script and im trying to make my own but im having issues

Re: systemd.service startup service script file?

2015-04-13 Thread Jacques Le Roux
I guess you are referring to this page https://cwiki.apache.org/confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service Look for rc.* files in your working copy HTH Jacques Le 13/04/2015 12:29, Chris Clark a écrit : does anyone have one of these... the wiki has a very much out dated init.d scr

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
right but rc.d files are extinct everything uses what is called systemd to boot up services as daemons now http://www.tecmint.com/systemd-replaces-init-in-linux/ this is another "architecture" for the daemonization process, it does not rely on bash scripts with all kinds of various thing defined

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
maybe you can help me... the new architecture requires an absolute path for the executable which is fine, but the java command /ofbiz/ofbiz.13.07/java -Xms768M -Xmx1024M -Duser.language=en > /ofbiz/log/messages 2>>/ofbiz/ofbiz.13.07/runtime/logs/console.log wont work because the absolute path to

Re: systemd.service startup service script file?

2015-04-13 Thread Ron Wheeler
Have you defined JAVA_HOME to match where Java is found? Ron On 13/04/2015 11:04 AM, Chris Clark wrote: maybe you can help me... the new architecture requires an absolute path for the executable which is fine, but the java command /ofbiz/ofbiz.13.07/java -Xms768M -Xmx1024M -Duser.language=en >

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
this is part and parcel of why systemd is now the standard... you dont have to define things like that in systemd services... because the services are executed with full access to system things like environment variables... i mean i can try to cut and copy all the enviornment variables from the rc

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
ahhh i was forgetting the -jar ofbiz.jar in the command line execution through the above mentioned command... i will post results On Mon, Apr 13, 2015 at 11:11 AM, Chris Clark wrote: > this is part and parcel of why systemd is now the standard... you dont > have to define things like that in s

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
so this is where i am at... i created a sym link inside the ofbiz directory to the java executable thereby having the process ran from the ofbiz home directory this i what my ofbiz.service file looks like... and yes they seem to usually be this simple, but can be as complicated as you want --

Re: systemd.service startup service script file?

2015-04-13 Thread Mike
You need to create a REAL script that fires up ofbiz, setting JAVA_HOME, etc, Then change the above "ExecStart" to that script. On Mon, Apr 13, 2015 at 9:53 AM, Chris Clark wrote: > so this is where i am at... i created a sym link inside the ofbiz > directory to the java executable thereby hav

Re: systemd.service startup service script file?

2015-04-13 Thread Ron Wheeler
As long as all the definitions are already present in the system environment. java -Xms768M -Xmx1024M -Duser.language=en > /ofbiz/log/messages 2>>/ofbiz/ofbiz.13.07/runtime/logs/console.log is missing the -jar as you pointed out. It also does not have a classpath which might also be the so

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
posted the output of systemctl in a previous email any help as to how to direct the class path in the java executable... like i said this is a whole "nother language" Chris On Mon, Apr 13, 2015 at 12:00 PM, Mike wrote: > You need to create a REAL script that fires up ofbiz, setting JAVA_HOME,

Re: systemd.service startup service script file?

2015-04-13 Thread Ron Wheeler
You might check "journalctl -n 50" to see if there is more info in the journal. It looks like it is having trouble starting up. I would set JAVA_HOME since it is highly unlikely that anyone would have set it to "/ofbiz/ofbiz.13.07java" which appears to be where you are expecting java to be.

Re: Promo Code Discount Per Product

2015-04-13 Thread Robert Lasater
This is a very simple function. Why is it so complicated in OFBIZ? We want to put in a promo code that will give a percentage discount on a specific product. If we don't put a limit of 1 use per order, it applies the promo to every quantity which messes up the sales order and invoice, because it p

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
ok so i did this, made a script file per Mike's suggestion the script file is here - [root@localhost system]# cat /ofbiz/ofbiz.13.07/ofbizd #!/bin/bash #shell script for ofbiz d

Errors compiling ofbiz 13.07 under debian 7

2015-04-13 Thread Alexey Gorbachev
Hi, everybody! I downloaded release ofbiz 13.07 as zip archieve from apache site, then compiled it under windows 7 (and also with win server 2008 R2) with jdk8 and ant 1.9.4. Everything is OK. Then I need to compile ofbiz under debian 7.8. I tried to do this also with jdk8 and ant 1.9.4, but go

Re: Errors compiling ofbiz 13.07 under debian 7

2015-04-13 Thread Mauricio Tavares
On Mon, Apr 13, 2015 at 3:58 PM, Alexey Gorbachev wrote: > Hi, everybody! > I downloaded release ofbiz 13.07 as zip archieve from apache site, then > compiled it under windows 7 (and also with win server 2008 R2) with jdk8 and > ant 1.9.4. Everything is OK. > Then I need to compile ofbiz under

Re[2]: Errors compiling ofbiz 13.07 under debian 7

2015-04-13 Thread Alexey Gorbachev
I downloaded jdk1.8.40 installed it to /opt/java-oracle folder, but in java -version I these strings. This is my java version. root@debian:/home/user# java -version java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mi

Re: Errors compiling ofbiz 13.07 under debian 7

2015-04-13 Thread Chris Clark
i personally use openjdk-1.7.0 which would be your jdk7 it just seems to be less buggy with ofbiz On Mon, Apr 13, 2015 at 3:07 PM, Mauricio Tavares wrote: > On Mon, Apr 13, 2015 at 3:58 PM, Alexey Gorbachev wrote: > > Hi, everybody! > > I downloaded release ofbiz 13.07 as zip archieve from a

Re: systemd.service startup service script file?

2015-04-13 Thread Mike
I don't think you want to specify the CLASSPATH. This is calculated by java. You also had some syntax errors. Try: #!/bin/bash #shell script for ofbiz daemon #ofbizd export JAVA_HOME=/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.i386 export PATH=/bin:/usr/bin:/sbin:/usr/sbin:$PATH export J

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
ok actually i had fixed that little touch up you did but the end result was this... same ofbiz.service file pointing to a ofbizd script residing in the ofbiz home directory ( I dont think its placement matters) I still had all the class not found errors so I ran this from the ofbiz home directory

Re: systemd.service startup service script file?

2015-04-13 Thread Ron Wheeler
export CLASSPATH=/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.i386 is not a classpath. Java wants to know where you have put your classes (jars or .classes files) that your code needs. Without the right classpath you will get "java.lang.ClassNotFoundException: org.ofbiz.base.container.Con

Re: systemd.service startup service script file?

2015-04-13 Thread Chris Clark
okay so i should change that to what the ofbiz home? that env variable is kind of moot as i re define ot when i read in the directories from classpath.txt, which is too cumbersome to post here... the first definition needs to be removed chris On Mon, Apr 13, 2015 at 6:34 PM, Ron Wheeler wrote:

Re: Errors compiling ofbiz 13.07 under debian 7

2015-04-13 Thread Tirtha Rahaman
Add widget jars in the classpath of order, party, product & workeffort. Add the below line in build.xml of order, party, product & workeffort under applications directory. On Tue, Apr 14, 2015 at 1:28 AM, Alexey Gorbachev wrote: > Hi, everybody! > I downloaded release ofbiz 13.07 as zip arch

Re[2]: Errors compiling ofbiz 13.07 under debian 7

2015-04-13 Thread Alexey Gorbachev
It works! Thank you very much Tirtha Rahaman. Best regards, Alexey Gorbachev. Original message От кого: Tirtha Rahaman Кому: user@ofbiz.apache.org Дата: Вторник, 14 апреля 2015, 9:49 +05:30 Тема: Re: Errors compiling ofbiz 13.07 under debian 7 Add widget jars in the classpat