Dear All
I'm new with OFBIZ May I ask you about the best IDE I should use for OFBIZ project Eclipse or IntelliJ IDEA(Free version ) Thank you very much |
Hi Puwanat,
Please make sure that you are registered with OFBiz's mailing list. Else your post at Nabble will not reach the mailing list. Regards, James
|
> Eclipse or IntelliJ IDEA(Free version )
Both of these work well. I started using IntelliJ since last 6 months and personally I like it very much. Best regards, Pranay Pandey HotWax Systems http://www.hotwaxsystems.com/ On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> wrote: > Hi Puwanat, > > Please make sure that you are registered with OFBiz's mailing list. Else > your post at Nabble will not reach the mailing list. > > Regards, > James > > puwanat_sr wrote > > Dear All > > > > I'm new with OFBIZ > > May I ask you about the best IDE I should use for OFBIZ project > > > > Eclipse or IntelliJ IDEA(Free version ) > > > > Thank you very much > > > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Administrator
|
I use Eclipse since I started with OFBiz (12 years ago). At the beginning I also tried, during sufficient long periods, NetBeans and IntelliJ.
I then liked more NetBeans than IntelliJ, but finally picked Eclipse as tool of choice. Last week I retried IntelliJ mostly because it has a better support for Groovy hence Gradle our new build tool. But I finally get back to Eclipse because for me it's still faster and I hate to wait. Disclaimer: I work on Windows 7, YMMV... Jacques Le 19/07/2016 à 09:13, Pranay Pandey a écrit : >> Eclipse or IntelliJ IDEA(Free version ) > Both of these work well. I started using IntelliJ since last 6 months and > personally I like it very much. > > Best regards, > > Pranay Pandey > HotWax Systems > http://www.hotwaxsystems.com/ > > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> wrote: > >> Hi Puwanat, >> >> Please make sure that you are registered with OFBiz's mailing list. Else >> your post at Nabble will not reach the mailing list. >> >> Regards, >> James >> >> puwanat_sr wrote >>> Dear All >>> >>> I'm new with OFBIZ >>> May I ask you about the best IDE I should use for OFBIZ project >>> >>> Eclipse or IntelliJ IDEA(Free version ) >>> >>> Thank you very much >> >> >> >> >> -- >> View this message in context: >> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> |
What version of Eclipse do you mean when saying "faster"? I experience slow scrolling of source code. It looks rather like fast paging than scrolling. Eclipse Neon 4.6. > 19.07.2016, 13:04:52 пользователь Jacques Le Roux ([hidden email]) написал: > > I use Eclipse since I started with OFBiz (12 years ago). At the beginning I also tried, during sufficient long periods, NetBeans and IntelliJ. > > I then liked more NetBeans than IntelliJ, but finally picked Eclipse as tool of choice. > > Last week I retried IntelliJ mostly because it has a better support for Groovy hence Gradle our new build tool. But I finally get back to Eclipse > because for me it's still faster and I hate to wait. > > Disclaimer: I work on Windows 7, YMMV... > > Jacques > > Le 19/07/2016 à 09:13, Pranay Pandey a écrit : > >> Eclipse or IntelliJ IDEA(Free version ) > > Both of these work well. I started using IntelliJ since last 6 months and > > personally I like it very much. > > > > Best regards, > > > > Pranay Pandey > > HotWax Systems > > http://www.hotwaxsystems.com/ > > > > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> wrote: > > > >> Hi Puwanat, > >> > >> Please make sure that you are registered with OFBiz's mailing list. Else > >> your post at Nabble will not reach the mailing list. > >> > >> Regards, > >> James > >> > >> puwanat_sr wrote > >>> Dear All > >>> > >>> I'm new with OFBIZ > >>> May I ask you about the best IDE I should use for OFBIZ project > >>> > >>> Eclipse or IntelliJ IDEA(Free version ) > >>> > >>> Thank you very much > >> > >> > >> > >> > >> -- > >> View this message in context: > >> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html > >> Sent from the OFBiz - User mailing list archive at Nabble.com. > >> > > |
Administrator
|
Le 20/07/2016 à 22:19, user a écrit :
> > What version of Eclipse do you mean when saying "faster"? Eclipse Neon (aka 4.6) > I experience slow scrolling of source code. It looks rather like fast paging than scrolling. Eclipse Neon 4.6. I have no issues scrolling at all. This may depend on your CPU but mostly your GPU. Jacques > > > >> 19.07.2016, 13:04:52 пользователь Jacques Le Roux ([hidden email]) написал: >> >> I use Eclipse since I started with OFBiz (12 years ago). At the beginning I also tried, during sufficient long periods, NetBeans and IntelliJ. >> >> I then liked more NetBeans than IntelliJ, but finally picked Eclipse as tool of choice. >> >> Last week I retried IntelliJ mostly because it has a better support for Groovy hence Gradle our new build tool. But I finally get back to Eclipse >> because for me it's still faster and I hate to wait. >> >> Disclaimer: I work on Windows 7, YMMV... >> >> Jacques >> >> Le 19/07/2016 à 09:13, Pranay Pandey a écrit : >> >> Eclipse or IntelliJ IDEA(Free version ) >> > Both of these work well. I started using IntelliJ since last 6 months and >> > personally I like it very much. >> > >> > Best regards, >> > >> > Pranay Pandey >> > HotWax Systems >> > http://www.hotwaxsystems.com/ >> > >> > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> wrote: >> > >> >> Hi Puwanat, >> >> >> >> Please make sure that you are registered with OFBiz's mailing list. Else >> >> your post at Nabble will not reach the mailing list. >> >> >> >> Regards, >> >> James >> >> >> >> puwanat_sr wrote >> >>> Dear All >> >>> >> >>> I'm new with OFBIZ >> >>> May I ask you about the best IDE I should use for OFBIZ project >> >>> >> >>> Eclipse or IntelliJ IDEA(Free version ) >> >>> >> >>> Thank you very much >> >> >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> >> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html >> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> >> > |
http://blog.artifact-software.com/tech/?p=322 is a small blog about how
I use a RAM Drive to speed up Eclipse. This makes editing pretty snappy even when a lot of features and plugins are loaded. I suspect that the same thing could be applied to other IDEs. Ron On 20/07/2016 4:39 PM, Jacques Le Roux wrote: > Le 20/07/2016 à 22:19, user a écrit : >> >> What version of Eclipse do you mean when saying "faster"? > > Eclipse Neon (aka 4.6) > >> I experience slow scrolling of source code. It looks rather like fast >> paging than scrolling. Eclipse Neon 4.6. > > I have no issues scrolling at all. This may depend on your CPU but > mostly your GPU. > > Jacques > >> >> >> >>> 19.07.2016, 13:04:52 пользователь Jacques Le Roux >>> ([hidden email]) написал: >>> >>> I use Eclipse since I started with OFBiz (12 years ago). At the >>> beginning I also tried, during sufficient long periods, NetBeans and >>> IntelliJ. >>> >>> I then liked more NetBeans than IntelliJ, but finally picked Eclipse >>> as tool of choice. >>> >>> Last week I retried IntelliJ mostly because it has a better support >>> for Groovy hence Gradle our new build tool. But I finally get back >>> to Eclipse because for me it's still faster and I hate to wait. >>> >>> Disclaimer: I work on Windows 7, YMMV... >>> >>> Jacques >>> >>> Le 19/07/2016 à 09:13, Pranay Pandey a écrit : >>> >> Eclipse or IntelliJ IDEA(Free version ) >>> > Both of these work well. I started using IntelliJ since last 6 >>> months and >>> > personally I like it very much. >>> > >>> > Best regards, >>> > >>> > Pranay Pandey >>> > HotWax Systems >>> > http://www.hotwaxsystems.com/ >>> > >>> > On Tue, Jul 19, 2016 at 5:05 AM, james yong >>> <[hidden email]> wrote: >>> > >>> >> Hi Puwanat, >>> >> >>> >> Please make sure that you are registered with OFBiz's mailing >>> list. Else >>> >> your post at Nabble will not reach the mailing list. >>> >> >>> >> Regards, >>> >> James >>> >> >>> >> puwanat_sr wrote >>> >>> Dear All >>> >>> >>> >>> I'm new with OFBIZ >>> >>> May I ask you about the best IDE I should use for OFBIZ project >>> >>> >>> >>> Eclipse or IntelliJ IDEA(Free version ) >>> >>> >>> >>> Thank you very much >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html >>> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >> >>> >>> >> > > -- Ron Wheeler President Artifact Software Inc email: [hidden email] skype: ronaldmwheeler phone: 866-970-2435, ext 102 |
Administrator
|
Ha forgot, I have a Samsung SSD 840 Pro, so I (still) don't feel the need to speed up Eclipse.
The desktop I use was created in December 2013 at my request by LDLC, a French company. Jacques Le 21/07/2016 à 02:51, Ron Wheeler a écrit : > http://blog.artifact-software.com/tech/?p=322 is a small blog about how I use a RAM Drive to speed up Eclipse. > > This makes editing pretty snappy even when a lot of features and plugins are loaded. > > I suspect that the same thing could be applied to other IDEs. > > Ron > > > On 20/07/2016 4:39 PM, Jacques Le Roux wrote: >> Le 20/07/2016 à 22:19, user a écrit : >>> >>> What version of Eclipse do you mean when saying "faster"? >> >> Eclipse Neon (aka 4.6) >> >>> I experience slow scrolling of source code. It looks rather like fast paging than scrolling. Eclipse Neon 4.6. >> >> I have no issues scrolling at all. This may depend on your CPU but mostly your GPU. >> >> Jacques >> >>> >>> >>> >>>> 19.07.2016, 13:04:52 пользователь Jacques Le Roux ([hidden email]) написал: >>>> >>>> I use Eclipse since I started with OFBiz (12 years ago). At the beginning I also tried, during sufficient long periods, NetBeans and IntelliJ. >>>> >>>> I then liked more NetBeans than IntelliJ, but finally picked Eclipse as tool of choice. >>>> >>>> Last week I retried IntelliJ mostly because it has a better support for Groovy hence Gradle our new build tool. But I finally get back to Eclipse >>>> because for me it's still faster and I hate to wait. >>>> >>>> Disclaimer: I work on Windows 7, YMMV... >>>> >>>> Jacques >>>> >>>> Le 19/07/2016 à 09:13, Pranay Pandey a écrit : >>>> >> Eclipse or IntelliJ IDEA(Free version ) >>>> > Both of these work well. I started using IntelliJ since last 6 months and >>>> > personally I like it very much. >>>> > >>>> > Best regards, >>>> > >>>> > Pranay Pandey >>>> > HotWax Systems >>>> > http://www.hotwaxsystems.com/ >>>> > >>>> > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> wrote: >>>> > >>>> >> Hi Puwanat, >>>> >> >>>> >> Please make sure that you are registered with OFBiz's mailing list. Else >>>> >> your post at Nabble will not reach the mailing list. >>>> >> >>>> >> Regards, >>>> >> James >>>> >> >>>> >> puwanat_sr wrote >>>> >>> Dear All >>>> >>> >>>> >>> I'm new with OFBIZ >>>> >>> May I ask you about the best IDE I should use for OFBIZ project >>>> >>> >>>> >>> Eclipse or IntelliJ IDEA(Free version ) >>>> >>> >>>> >>> Thank you very much >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> View this message in context: >>>> >> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html >>>> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> >> >>>> >>>> >>> >> >> > > |
Now I have SSD envy!
That would make a big difference for Eclipse and remove the need for a RAM drive. My advice is only applicable to those of us still using relics from the previous decade. Ron On 21/07/2016 3:26 AM, Jacques Le Roux wrote: > Ha forgot, I have a Samsung SSD 840 Pro, so I (still) don't feel the > need to speed up Eclipse. > > The desktop I use was created in December 2013 at my request by LDLC, > a French company. > > Jacques > > > Le 21/07/2016 à 02:51, Ron Wheeler a écrit : >> http://blog.artifact-software.com/tech/?p=322 is a small blog about >> how I use a RAM Drive to speed up Eclipse. >> >> This makes editing pretty snappy even when a lot of features and >> plugins are loaded. >> >> I suspect that the same thing could be applied to other IDEs. >> >> Ron >> >> >> On 20/07/2016 4:39 PM, Jacques Le Roux wrote: >>> Le 20/07/2016 à 22:19, user a écrit : >>>> >>>> What version of Eclipse do you mean when saying "faster"? >>> >>> Eclipse Neon (aka 4.6) >>> >>>> I experience slow scrolling of source code. It looks rather like >>>> fast paging than scrolling. Eclipse Neon 4.6. >>> >>> I have no issues scrolling at all. This may depend on your CPU but >>> mostly your GPU. >>> >>> Jacques >>> >>>> >>>> >>>> >>>>> 19.07.2016, 13:04:52 пользователь Jacques Le Roux >>>>> ([hidden email]) написал: >>>>> >>>>> I use Eclipse since I started with OFBiz (12 years ago). At the >>>>> beginning I also tried, during sufficient long periods, NetBeans >>>>> and IntelliJ. >>>>> >>>>> I then liked more NetBeans than IntelliJ, but finally picked >>>>> Eclipse as tool of choice. >>>>> >>>>> Last week I retried IntelliJ mostly because it has a better >>>>> support for Groovy hence Gradle our new build tool. But I finally >>>>> get back to Eclipse because for me it's still faster and I hate to >>>>> wait. >>>>> >>>>> Disclaimer: I work on Windows 7, YMMV... >>>>> >>>>> Jacques >>>>> >>>>> Le 19/07/2016 à 09:13, Pranay Pandey a écrit : >>>>> >> Eclipse or IntelliJ IDEA(Free version ) >>>>> > Both of these work well. I started using IntelliJ since last 6 >>>>> months and >>>>> > personally I like it very much. >>>>> > >>>>> > Best regards, >>>>> > >>>>> > Pranay Pandey >>>>> > HotWax Systems >>>>> > http://www.hotwaxsystems.com/ >>>>> > >>>>> > On Tue, Jul 19, 2016 at 5:05 AM, james yong >>>>> <[hidden email]> wrote: >>>>> > >>>>> >> Hi Puwanat, >>>>> >> >>>>> >> Please make sure that you are registered with OFBiz's mailing >>>>> list. Else >>>>> >> your post at Nabble will not reach the mailing list. >>>>> >> >>>>> >> Regards, >>>>> >> James >>>>> >> >>>>> >> puwanat_sr wrote >>>>> >>> Dear All >>>>> >>> >>>>> >>> I'm new with OFBIZ >>>>> >>> May I ask you about the best IDE I should use for OFBIZ project >>>>> >>> >>>>> >>> Eclipse or IntelliJ IDEA(Free version ) >>>>> >>> >>>>> >>> Thank you very much >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> -- >>>>> >> View this message in context: >>>>> >> >>>>> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html >>>>> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>>> >> >>>>> >>>>> >>>> >>> >>> >> >> > > -- Ron Wheeler President Artifact Software Inc email: [hidden email] skype: ronaldmwheeler phone: 866-970-2435, ext 102 |
There is bug in Eclipse for GNU/Linux which causes the ugly scrolling: https://bugs.eclipse.org/bugs/show_bug.cgi?id=434898 If someone else experiences the same issue, I appreciate to vote for this bug. > 21.07.2016, 17:55:22 пользователь Ron Wheeler ([hidden email]) написал: > > Now I have SSD envy! > > That would make a big difference for Eclipse and remove the need for a > RAM drive. > > My advice is only applicable to those of us still using relics from the > previous decade. > > Ron > > On 21/07/2016 3:26 AM, Jacques Le Roux wrote: > > Ha forgot, I have a Samsung SSD 840 Pro, so I (still) don't feel the > > need to speed up Eclipse. > > > > The desktop I use was created in December 2013 at my request by LDLC, > > a French company. > > > > Jacques > > > > > > Le 21/07/2016 à 02:51, Ron Wheeler a écrit : > >> http://blog.artifact-software.com/tech/?p=322 is a small blog about > >> how I use a RAM Drive to speed up Eclipse. > >> > >> This makes editing pretty snappy even when a lot of features and > >> plugins are loaded. > >> > >> I suspect that the same thing could be applied to other IDEs. > >> > >> Ron > >> > >> > >> On 20/07/2016 4:39 PM, Jacques Le Roux wrote: > >>> Le 20/07/2016 à 22:19, user a écrit : > >>>> > >>>> What version of Eclipse do you mean when saying "faster"? > >>> > >>> Eclipse Neon (aka 4.6) > >>> > >>>> I experience slow scrolling of source code. It looks rather like > >>>> fast paging than scrolling. Eclipse Neon 4.6. > >>> > >>> I have no issues scrolling at all. This may depend on your CPU but > >>> mostly your GPU. > >>> > >>> Jacques > >>> > >>>> > >>>> > >>>> > >>>>> 19.07.2016, 13:04:52 пользователь Jacques Le Roux > >>>>> ([hidden email]) написал: > >>>>> > >>>>> I use Eclipse since I started with OFBiz (12 years ago). At the > >>>>> beginning I also tried, during sufficient long periods, NetBeans > >>>>> and IntelliJ. > >>>>> > >>>>> I then liked more NetBeans than IntelliJ, but finally picked > >>>>> Eclipse as tool of choice. > >>>>> > >>>>> Last week I retried IntelliJ mostly because it has a better > >>>>> support for Groovy hence Gradle our new build tool. But I finally > >>>>> get back to Eclipse because for me it's still faster and I hate to > >>>>> wait. > >>>>> > >>>>> Disclaimer: I work on Windows 7, YMMV... > >>>>> > >>>>> Jacques > >>>>> > >>>>> Le 19/07/2016 à 09:13, Pranay Pandey a écrit : > >>>>> >> Eclipse or IntelliJ IDEA(Free version ) > >>>>> > Both of these work well. I started using IntelliJ since last 6 > >>>>> months and > >>>>> > personally I like it very much. > >>>>> > > >>>>> > Best regards, > >>>>> > > >>>>> > Pranay Pandey > >>>>> > HotWax Systems > >>>>> > http://www.hotwaxsystems.com/ > >>>>> > > >>>>> > On Tue, Jul 19, 2016 at 5:05 AM, james yong > >>>>> <[hidden email]> wrote: > >>>>> > > >>>>> >> Hi Puwanat, > >>>>> >> > >>>>> >> Please make sure that you are registered with OFBiz's mailing > >>>>> list. Else > >>>>> >> your post at Nabble will not reach the mailing list. > >>>>> >> > >>>>> >> Regards, > >>>>> >> James > >>>>> >> > >>>>> >> puwanat_sr wrote > >>>>> >>> Dear All > >>>>> >>> > >>>>> >>> I'm new with OFBIZ > >>>>> >>> May I ask you about the best IDE I should use for OFBIZ project > >>>>> >>> > >>>>> >>> Eclipse or IntelliJ IDEA(Free version ) > >>>>> >>> > >>>>> >>> Thank you very much > >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >> -- > >>>>> >> View this message in context: > >>>>> >> > >>>>> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html > >>>>> >> Sent from the OFBiz - User mailing list archive at Nabble.com. > >>>>> >> > >>>>> > >>>>> > >>>> > >>> > >>> > >> > >> > > > > > > -- > Ron Wheeler > President > Artifact Software Inc > email: [hidden email] > skype: ronaldmwheeler > phone: 866-970-2435, ext 102 > > |
Administrator
|
Le 21/07/2016 à 15:21, user a écrit :
> > There is bug in Eclipse for GNU/Linux which causes the ugly scrolling: https://bugs.eclipse.org/bugs/show_bug.cgi?id=434898 > If someone else experiences the same issue, I appreciate to vote for this bug. Done! Jacques |
In reply to this post by Ron Wheeler
I set this down because I couldn't get it running, but I'm picking it
back up. Still in the "using the demo" stage,a nd while I can start fine with ./ant start from the ofbiz directory, I can't seem to get it started with an /etc/init.d/ofbiz script. I've tried a couple things, but the latest (back to square 1) spot I'm in is copying ofbizdir/tools/rc.ofbiz /etc/init.d/ofbiz Not sure what I read that told me this, but I commented out . /etc/rc.d/init.d/functions (in the vicinity of line 30) and . /etc/sysconfig/network near line 34, changed my path to /ofbiz (where I unzipped it) and also replaced any instances of echo_ with just echo (echo followed by a space). So here's my script, and I can't get it running. Nor can I seem to find a log file anywhere that tells me what's going on. ofbiz owns the /etc/init.d/ofbiz , and I'm starting it as root with sudo -u ofbiz /etc/init.d/ofbiz restart #!/bin/sh ##################################################################### # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. ##################################################################### # # ofbiz This shell script takes care of starting and stopping # the OFBiz subsystem # # chkconfig: - 80 10 # description: OFBiz server # Source function library # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian # => comment out and use "echo failure" and "echo success" in place of echo failure and echo success (minor anyway) #. /etc/rc.d/init.d/functions # Source networking configuration # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian #. /etc/sysconfig/network # Paths - Edit for your locations JAVA_BINARY=/usr/bin/java OFBIZ_HOME=/ofbiz OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log # VM Options JAVA_VMOPTIONS="-Xms128M -Xmx512M -XX:MaxPermSize=512m" # Java arguments JAVA_ARGS="-jar ofbiz.jar" # *nix user ofbiz should run as (you must create this user first) OFBIZ_USER=ofbiz # OFBiz processes running ofbizprocs() { OFBIZ_PROCS=`/bin/ps h -o pid,args -C java | /bin/grep -e "$JAVA_ARGS" | /bin/egrep -o "^[[:space:]]*[[:digit:]]*"` } # Checking user... checkuser() { if [ "$USER" != "$OFBIZ_USER" ]; then echo failure echo echo "Only users root or $OFBIZ_USER should start/stop the application" exit 1 fi } # Start OFBiz start() { echo -n "Starting OFBiz: " checkuser ofbizprocs if [ "$OFBIZ_PROCS" != "" ]; then echo failure echo echo "OFBiz is already running..." return 1 fi # All clear cd $OFBIZ_HOME umask 007 /bin/rm -f $OFBIZ_LOG $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS >>$OFBIZ_LOG 2>>$OFBIZ_LOG& echo success return 0 } # Stop OFBiz stop() { echo -n "Stopping OFBiz: " checkuser ofbizprocs if [ "$OFBIZ_PROCS" == "" ]; then echo failure echo echo "OFBiz is not running..." return 1 fi # All clear cd $OFBIZ_HOME umask 007 $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS -shutdown >>$OFBIZ_LOG ofbizprocs if [ "$OFBIZ_PROCS" != "" ]; then # Let's try to -TERM /bin/kill -TERM $OFBIZ_PROCS fi ofbizprocs if [ "$OFBIZ_PROCS" != "" ]; then # Let's try it the hard way! /bin/kill -9 $OFBIZ_PROCS fi ofbizprocs if [ "$OFBIZ_PROCS" != "" ]; then echo failure echo echo "Some processes could not be stopped:" echo $OFBIZ_PROCS echo "A possible solution is to try this command once more!" return 1 else echo success return 0 fi } # If root is running this script, su to $OFBIZ_USER first # Note that under Debian/Ubuntu/etc. you should use instead # if [ "$USER" = "root" ]; then if [ "$UID" = "0" ]; then exec su - $OFBIZ_USER -c "$0 $1" fi case "$1" in 'start') start ;; 'stop') stop ;; 'restart') stop start ;; 'status') ofbizprocs if [ "$OFBIZ_PROCS" == "" ]; then echo "OFBiz is stopped" exit 1 else echo "OFBiz is running" exit 0 fi ;; *) echo "Usage: $0 {start|stop|kill|restart|status|help}" exit 1 ;; esac echo exit $? |
Hi Craig,
May I ask what OS version you are using and what the version of OFBiz is? Best regards, Pierre Smits ORRTIZ.COM <http://www.orrtiz.com> OFBiz based solutions & services OFBiz Extensions Marketplace http://oem.ofbizci.net/oci-2/ On Fri, Jul 22, 2016 at 5:15 AM, Craig Parker <[hidden email]> wrote: > I set this down because I couldn't get it running, but I'm picking it back > up. Still in the "using the demo" stage,a nd while I can start fine with > ./ant start from the ofbiz directory, I can't seem to get it started with > an /etc/init.d/ofbiz script. > I've tried a couple things, but the latest (back to square 1) spot I'm in > is copying ofbizdir/tools/rc.ofbiz /etc/init.d/ofbiz > > Not sure what I read that told me this, but I commented out . > /etc/rc.d/init.d/functions (in the vicinity of line 30) and . > /etc/sysconfig/network near line 34, changed my path to /ofbiz (where I > unzipped it) and also replaced any instances of echo_ with just echo (echo > followed by a space). > > So here's my script, and I can't get it running. Nor can I seem to find a > log file anywhere that tells me what's going on. ofbiz owns the > /etc/init.d/ofbiz , and I'm starting it as root with sudo -u ofbiz > /etc/init.d/ofbiz restart > > #!/bin/sh > ##################################################################### > # Licensed to the Apache Software Foundation (ASF) under one > # or more contributor license agreements. See the NOTICE file > # distributed with this work for additional information > # regarding copyright ownership. The ASF licenses this file > # to you under the Apache License, Version 2.0 (the > # "License"); you may not use this file except in compliance > # with the License. You may obtain a copy of the License at > # > # http://www.apache.org/licenses/LICENSE-2.0 > # > # Unless required by applicable law or agreed to in writing, > # software distributed under the License is distributed on an > # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > # KIND, either express or implied. See the License for the > # specific language governing permissions and limitations > # under the License. > ##################################################################### > # > # ofbiz This shell script takes care of starting and stopping > # the OFBiz subsystem > # > # chkconfig: - 80 10 > # description: OFBiz server > > # Source function library > # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian > # => comment out and use "echo failure" and "echo success" in place of > echo failure and echo success (minor anyway) > #. /etc/rc.d/init.d/functions > > # Source networking configuration > # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian > #. /etc/sysconfig/network > > # Paths - Edit for your locations > JAVA_BINARY=/usr/bin/java > OFBIZ_HOME=/ofbiz > OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log > > # VM Options > JAVA_VMOPTIONS="-Xms128M -Xmx512M -XX:MaxPermSize=512m" > > # Java arguments > JAVA_ARGS="-jar ofbiz.jar" > > # *nix user ofbiz should run as (you must create this user first) > OFBIZ_USER=ofbiz > > # OFBiz processes running > ofbizprocs() { > OFBIZ_PROCS=`/bin/ps h -o pid,args -C java | /bin/grep -e "$JAVA_ARGS" > | /bin/egrep -o "^[[:space:]]*[[:digit:]]*"` > } > > # Checking user... > checkuser() { > if [ "$USER" != "$OFBIZ_USER" ]; then > echo failure > echo > echo "Only users root or $OFBIZ_USER should start/stop the > application" > exit 1 > fi > } > > # Start OFBiz > start() { > echo -n "Starting OFBiz: " > checkuser > ofbizprocs > if [ "$OFBIZ_PROCS" != "" ]; then > echo failure > echo > echo "OFBiz is already running..." > return 1 > fi > > # All clear > cd $OFBIZ_HOME > umask 007 > /bin/rm -f $OFBIZ_LOG > $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS >>$OFBIZ_LOG 2>>$OFBIZ_LOG& > echo success > return 0 > } > > # Stop OFBiz > stop() { > echo -n "Stopping OFBiz: " > checkuser > ofbizprocs > if [ "$OFBIZ_PROCS" == "" ]; then > echo failure > echo > echo "OFBiz is not running..." > return 1 > fi > > # All clear > cd $OFBIZ_HOME > umask 007 > $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS -shutdown >>$OFBIZ_LOG > ofbizprocs > if [ "$OFBIZ_PROCS" != "" ]; then > # Let's try to -TERM > /bin/kill -TERM $OFBIZ_PROCS > fi > ofbizprocs > if [ "$OFBIZ_PROCS" != "" ]; then > # Let's try it the hard way! > /bin/kill -9 $OFBIZ_PROCS > fi > ofbizprocs > if [ "$OFBIZ_PROCS" != "" ]; then > echo failure > echo > echo "Some processes could not be stopped:" > echo $OFBIZ_PROCS > echo "A possible solution is to try this command once more!" > return 1 > else > echo success > return 0 > fi > } > > # If root is running this script, su to $OFBIZ_USER first > # Note that under Debian/Ubuntu/etc. you should use instead > # if [ "$USER" = "root" ]; then > if [ "$UID" = "0" ]; then > exec su - $OFBIZ_USER -c "$0 $1" > fi > > case "$1" in > 'start') > start > ;; > 'stop') > stop > ;; > 'restart') > stop > start > ;; > 'status') > ofbizprocs > if [ "$OFBIZ_PROCS" == "" ]; then > echo "OFBiz is stopped" > exit 1 > else > echo "OFBiz is running" > exit 0 > fi > ;; > *) > echo "Usage: $0 {start|stop|kill|restart|status|help}" > exit 1 > ;; > esac > echo > exit $? > |
I'm on Ubuntu 14.04 server (32 bit -- this is just an old clunker
computer I'm trying stuff out on) and the OFBIZ zip I grabbed is 13.07.03. There was an ubuntu script I tried grabbing instead of rc.ofbiz (rc.ofbiz.for.ubuntu) a couple months ago, but didn't have any better luck with that. I think I'm going to land on Debian eventually, but if I can troubleshoot this install I should be able to figure that one out. On 07/22/2016 02:24 AM, Pierre Smits wrote: > Hi Craig, > > May I ask what OS version you are using and what the version of OFBiz is? > > Best regards, > > Pierre Smits > > ORRTIZ.COM <http://www.orrtiz.com> > OFBiz based solutions & services > > OFBiz Extensions Marketplace > http://oem.ofbizci.net/oci-2/ > > On Fri, Jul 22, 2016 at 5:15 AM, Craig Parker <[hidden email]> wrote: > >> I set this down because I couldn't get it running, but I'm picking it back >> up. Still in the "using the demo" stage,a nd while I can start fine with >> ./ant start from the ofbiz directory, I can't seem to get it started with >> an /etc/init.d/ofbiz script. >> I've tried a couple things, but the latest (back to square 1) spot I'm in >> is copying ofbizdir/tools/rc.ofbiz /etc/init.d/ofbiz >> >> Not sure what I read that told me this, but I commented out . >> /etc/rc.d/init.d/functions (in the vicinity of line 30) and . >> /etc/sysconfig/network near line 34, changed my path to /ofbiz (where I >> unzipped it) and also replaced any instances of echo_ with just echo (echo >> followed by a space). >> >> So here's my script, and I can't get it running. Nor can I seem to find a >> log file anywhere that tells me what's going on. ofbiz owns the >> /etc/init.d/ofbiz , and I'm starting it as root with sudo -u ofbiz >> /etc/init.d/ofbiz restart >> >> #!/bin/sh >> ##################################################################### >> # Licensed to the Apache Software Foundation (ASF) under one >> # or more contributor license agreements. See the NOTICE file >> # distributed with this work for additional information >> # regarding copyright ownership. The ASF licenses this file >> # to you under the Apache License, Version 2.0 (the >> # "License"); you may not use this file except in compliance >> # with the License. You may obtain a copy of the License at >> # >> # http://www.apache.org/licenses/LICENSE-2.0 >> # >> # Unless required by applicable law or agreed to in writing, >> # software distributed under the License is distributed on an >> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY >> # KIND, either express or implied. See the License for the >> # specific language governing permissions and limitations >> # under the License. >> ##################################################################### >> # >> # ofbiz This shell script takes care of starting and stopping >> # the OFBiz subsystem >> # >> # chkconfig: - 80 10 >> # description: OFBiz server >> >> # Source function library >> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >> # => comment out and use "echo failure" and "echo success" in place of >> echo failure and echo success (minor anyway) >> #. /etc/rc.d/init.d/functions >> >> # Source networking configuration >> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >> #. /etc/sysconfig/network >> >> # Paths - Edit for your locations >> JAVA_BINARY=/usr/bin/java >> OFBIZ_HOME=/ofbiz >> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log >> >> # VM Options >> JAVA_VMOPTIONS="-Xms128M -Xmx512M -XX:MaxPermSize=512m" >> >> # Java arguments >> JAVA_ARGS="-jar ofbiz.jar" >> >> # *nix user ofbiz should run as (you must create this user first) >> OFBIZ_USER=ofbiz >> >> # OFBiz processes running >> ofbizprocs() { >> OFBIZ_PROCS=`/bin/ps h -o pid,args -C java | /bin/grep -e "$JAVA_ARGS" >> | /bin/egrep -o "^[[:space:]]*[[:digit:]]*"` >> } >> >> # Checking user... >> checkuser() { >> if [ "$USER" != "$OFBIZ_USER" ]; then >> echo failure >> echo >> echo "Only users root or $OFBIZ_USER should start/stop the >> application" >> exit 1 >> fi >> } >> >> # Start OFBiz >> start() { >> echo -n "Starting OFBiz: " >> checkuser >> ofbizprocs >> if [ "$OFBIZ_PROCS" != "" ]; then >> echo failure >> echo >> echo "OFBiz is already running..." >> return 1 >> fi >> >> # All clear >> cd $OFBIZ_HOME >> umask 007 >> /bin/rm -f $OFBIZ_LOG >> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS >>$OFBIZ_LOG 2>>$OFBIZ_LOG& >> echo success >> return 0 >> } >> >> # Stop OFBiz >> stop() { >> echo -n "Stopping OFBiz: " >> checkuser >> ofbizprocs >> if [ "$OFBIZ_PROCS" == "" ]; then >> echo failure >> echo >> echo "OFBiz is not running..." >> return 1 >> fi >> >> # All clear >> cd $OFBIZ_HOME >> umask 007 >> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS -shutdown >>$OFBIZ_LOG >> ofbizprocs >> if [ "$OFBIZ_PROCS" != "" ]; then >> # Let's try to -TERM >> /bin/kill -TERM $OFBIZ_PROCS >> fi >> ofbizprocs >> if [ "$OFBIZ_PROCS" != "" ]; then >> # Let's try it the hard way! >> /bin/kill -9 $OFBIZ_PROCS >> fi >> ofbizprocs >> if [ "$OFBIZ_PROCS" != "" ]; then >> echo failure >> echo >> echo "Some processes could not be stopped:" >> echo $OFBIZ_PROCS >> echo "A possible solution is to try this command once more!" >> return 1 >> else >> echo success >> return 0 >> fi >> } >> >> # If root is running this script, su to $OFBIZ_USER first >> # Note that under Debian/Ubuntu/etc. you should use instead >> # if [ "$USER" = "root" ]; then >> if [ "$UID" = "0" ]; then >> exec su - $OFBIZ_USER -c "$0 $1" >> fi >> >> case "$1" in >> 'start') >> start >> ;; >> 'stop') >> stop >> ;; >> 'restart') >> stop >> start >> ;; >> 'status') >> ofbizprocs >> if [ "$OFBIZ_PROCS" == "" ]; then >> echo "OFBiz is stopped" >> exit 1 >> else >> echo "OFBiz is running" >> exit 0 >> fi >> ;; >> *) >> echo "Usage: $0 {start|stop|kill|restart|status|help}" >> exit 1 >> ;; >> esac >> echo >> exit $? >> |
Hi Craig,
I have found that the script for Ubuntu is of a lesser quality than the one for Debian, so that is what I have been using for various environments as a starting point. Best regards, Pierre Smits ORRTIZ.COM <http://www.orrtiz.com> OFBiz based solutions & services OFBiz Extensions Marketplace http://oem.ofbizci.net/oci-2/ On Fri, Jul 22, 2016 at 5:09 PM, Craig Parker <[hidden email]> wrote: > I'm on Ubuntu 14.04 server (32 bit -- this is just an old clunker computer > I'm trying stuff out on) and the OFBIZ zip I grabbed is 13.07.03. > > There was an ubuntu script I tried grabbing instead of rc.ofbiz > (rc.ofbiz.for.ubuntu) a couple months ago, but didn't have any better luck > with that. I think I'm going to land on Debian eventually, but if I can > troubleshoot this install I should be able to figure that one out. > > > On 07/22/2016 02:24 AM, Pierre Smits wrote: > >> Hi Craig, >> >> May I ask what OS version you are using and what the version of OFBiz is? >> >> Best regards, >> >> Pierre Smits >> >> ORRTIZ.COM <http://www.orrtiz.com> >> >> OFBiz based solutions & services >> >> OFBiz Extensions Marketplace >> http://oem.ofbizci.net/oci-2/ >> >> On Fri, Jul 22, 2016 at 5:15 AM, Craig Parker <[hidden email]> >> wrote: >> >> I set this down because I couldn't get it running, but I'm picking it back >>> up. Still in the "using the demo" stage,a nd while I can start fine with >>> ./ant start from the ofbiz directory, I can't seem to get it started with >>> an /etc/init.d/ofbiz script. >>> I've tried a couple things, but the latest (back to square 1) spot I'm in >>> is copying ofbizdir/tools/rc.ofbiz /etc/init.d/ofbiz >>> >>> Not sure what I read that told me this, but I commented out . >>> /etc/rc.d/init.d/functions (in the vicinity of line 30) and . >>> /etc/sysconfig/network near line 34, changed my path to /ofbiz (where I >>> unzipped it) and also replaced any instances of echo_ with just echo >>> (echo >>> followed by a space). >>> >>> So here's my script, and I can't get it running. Nor can I seem to find a >>> log file anywhere that tells me what's going on. ofbiz owns the >>> /etc/init.d/ofbiz , and I'm starting it as root with sudo -u ofbiz >>> /etc/init.d/ofbiz restart >>> >>> #!/bin/sh >>> ##################################################################### >>> # Licensed to the Apache Software Foundation (ASF) under one >>> # or more contributor license agreements. See the NOTICE file >>> # distributed with this work for additional information >>> # regarding copyright ownership. The ASF licenses this file >>> # to you under the Apache License, Version 2.0 (the >>> # "License"); you may not use this file except in compliance >>> # with the License. You may obtain a copy of the License at >>> # >>> # http://www.apache.org/licenses/LICENSE-2.0 >>> # >>> # Unless required by applicable law or agreed to in writing, >>> # software distributed under the License is distributed on an >>> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY >>> # KIND, either express or implied. See the License for the >>> # specific language governing permissions and limitations >>> # under the License. >>> ##################################################################### >>> # >>> # ofbiz This shell script takes care of starting and stopping >>> # the OFBiz subsystem >>> # >>> # chkconfig: - 80 10 >>> # description: OFBiz server >>> >>> # Source function library >>> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >>> # => comment out and use "echo failure" and "echo success" in place of >>> echo failure and echo success (minor anyway) >>> #. /etc/rc.d/init.d/functions >>> >>> # Source networking configuration >>> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >>> #. /etc/sysconfig/network >>> >>> # Paths - Edit for your locations >>> JAVA_BINARY=/usr/bin/java >>> OFBIZ_HOME=/ofbiz >>> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log >>> >>> # VM Options >>> JAVA_VMOPTIONS="-Xms128M -Xmx512M -XX:MaxPermSize=512m" >>> >>> # Java arguments >>> JAVA_ARGS="-jar ofbiz.jar" >>> >>> # *nix user ofbiz should run as (you must create this user first) >>> OFBIZ_USER=ofbiz >>> >>> # OFBiz processes running >>> ofbizprocs() { >>> OFBIZ_PROCS=`/bin/ps h -o pid,args -C java | /bin/grep -e >>> "$JAVA_ARGS" >>> | /bin/egrep -o "^[[:space:]]*[[:digit:]]*"` >>> } >>> >>> # Checking user... >>> checkuser() { >>> if [ "$USER" != "$OFBIZ_USER" ]; then >>> echo failure >>> echo >>> echo "Only users root or $OFBIZ_USER should start/stop the >>> application" >>> exit 1 >>> fi >>> } >>> >>> # Start OFBiz >>> start() { >>> echo -n "Starting OFBiz: " >>> checkuser >>> ofbizprocs >>> if [ "$OFBIZ_PROCS" != "" ]; then >>> echo failure >>> echo >>> echo "OFBiz is already running..." >>> return 1 >>> fi >>> >>> # All clear >>> cd $OFBIZ_HOME >>> umask 007 >>> /bin/rm -f $OFBIZ_LOG >>> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS >>$OFBIZ_LOG 2>>$OFBIZ_LOG& >>> echo success >>> return 0 >>> } >>> >>> # Stop OFBiz >>> stop() { >>> echo -n "Stopping OFBiz: " >>> checkuser >>> ofbizprocs >>> if [ "$OFBIZ_PROCS" == "" ]; then >>> echo failure >>> echo >>> echo "OFBiz is not running..." >>> return 1 >>> fi >>> >>> # All clear >>> cd $OFBIZ_HOME >>> umask 007 >>> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS -shutdown >>$OFBIZ_LOG >>> ofbizprocs >>> if [ "$OFBIZ_PROCS" != "" ]; then >>> # Let's try to -TERM >>> /bin/kill -TERM $OFBIZ_PROCS >>> fi >>> ofbizprocs >>> if [ "$OFBIZ_PROCS" != "" ]; then >>> # Let's try it the hard way! >>> /bin/kill -9 $OFBIZ_PROCS >>> fi >>> ofbizprocs >>> if [ "$OFBIZ_PROCS" != "" ]; then >>> echo failure >>> echo >>> echo "Some processes could not be stopped:" >>> echo $OFBIZ_PROCS >>> echo "A possible solution is to try this command once more!" >>> return 1 >>> else >>> echo success >>> return 0 >>> fi >>> } >>> >>> # If root is running this script, su to $OFBIZ_USER first >>> # Note that under Debian/Ubuntu/etc. you should use instead >>> # if [ "$USER" = "root" ]; then >>> if [ "$UID" = "0" ]; then >>> exec su - $OFBIZ_USER -c "$0 $1" >>> fi >>> >>> case "$1" in >>> 'start') >>> start >>> ;; >>> 'stop') >>> stop >>> ;; >>> 'restart') >>> stop >>> start >>> ;; >>> 'status') >>> ofbizprocs >>> if [ "$OFBIZ_PROCS" == "" ]; then >>> echo "OFBiz is stopped" >>> exit 1 >>> else >>> echo "OFBiz is running" >>> exit 0 >>> fi >>> ;; >>> *) >>> echo "Usage: $0 {start|stop|kill|restart|status|help}" >>> exit 1 >>> ;; >>> esac >>> echo >>> exit $? >>> >>> > |
Pierre -- it's up and running. Thanks a bunch. I need to get POS running
too, but I'll take a break and just learn what I've got for the moment On 07/22/2016 12:01 PM, Pierre Smits wrote: > Hi Craig, > > I have found that the script for Ubuntu is of a lesser quality than the one > for Debian, so that is what I have been using for various environments as a > starting point. > > Best regards, > > Pierre Smits > > ORRTIZ.COM <http://www.orrtiz.com> > OFBiz based solutions & services > > OFBiz Extensions Marketplace > http://oem.ofbizci.net/oci-2/ > > On Fri, Jul 22, 2016 at 5:09 PM, Craig Parker <[hidden email]> wrote: > >> I'm on Ubuntu 14.04 server (32 bit -- this is just an old clunker computer >> I'm trying stuff out on) and the OFBIZ zip I grabbed is 13.07.03. >> >> There was an ubuntu script I tried grabbing instead of rc.ofbiz >> (rc.ofbiz.for.ubuntu) a couple months ago, but didn't have any better luck >> with that. I think I'm going to land on Debian eventually, but if I can >> troubleshoot this install I should be able to figure that one out. >> >> >> On 07/22/2016 02:24 AM, Pierre Smits wrote: >> >>> Hi Craig, >>> >>> May I ask what OS version you are using and what the version of OFBiz is? >>> >>> Best regards, >>> >>> Pierre Smits >>> >>> ORRTIZ.COM <http://www.orrtiz.com> >>> >>> OFBiz based solutions & services >>> >>> OFBiz Extensions Marketplace >>> http://oem.ofbizci.net/oci-2/ >>> >>> On Fri, Jul 22, 2016 at 5:15 AM, Craig Parker <[hidden email]> >>> wrote: >>> >>> I set this down because I couldn't get it running, but I'm picking it back >>>> up. Still in the "using the demo" stage,a nd while I can start fine with >>>> ./ant start from the ofbiz directory, I can't seem to get it started with >>>> an /etc/init.d/ofbiz script. >>>> I've tried a couple things, but the latest (back to square 1) spot I'm in >>>> is copying ofbizdir/tools/rc.ofbiz /etc/init.d/ofbiz >>>> >>>> Not sure what I read that told me this, but I commented out . >>>> /etc/rc.d/init.d/functions (in the vicinity of line 30) and . >>>> /etc/sysconfig/network near line 34, changed my path to /ofbiz (where I >>>> unzipped it) and also replaced any instances of echo_ with just echo >>>> (echo >>>> followed by a space). >>>> >>>> So here's my script, and I can't get it running. Nor can I seem to find a >>>> log file anywhere that tells me what's going on. ofbiz owns the >>>> /etc/init.d/ofbiz , and I'm starting it as root with sudo -u ofbiz >>>> /etc/init.d/ofbiz restart >>>> >>>> #!/bin/sh >>>> ##################################################################### >>>> # Licensed to the Apache Software Foundation (ASF) under one >>>> # or more contributor license agreements. See the NOTICE file >>>> # distributed with this work for additional information >>>> # regarding copyright ownership. The ASF licenses this file >>>> # to you under the Apache License, Version 2.0 (the >>>> # "License"); you may not use this file except in compliance >>>> # with the License. You may obtain a copy of the License at >>>> # >>>> # http://www.apache.org/licenses/LICENSE-2.0 >>>> # >>>> # Unless required by applicable law or agreed to in writing, >>>> # software distributed under the License is distributed on an >>>> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY >>>> # KIND, either express or implied. See the License for the >>>> # specific language governing permissions and limitations >>>> # under the License. >>>> ##################################################################### >>>> # >>>> # ofbiz This shell script takes care of starting and stopping >>>> # the OFBiz subsystem >>>> # >>>> # chkconfig: - 80 10 >>>> # description: OFBiz server >>>> >>>> # Source function library >>>> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >>>> # => comment out and use "echo failure" and "echo success" in place of >>>> echo failure and echo success (minor anyway) >>>> #. /etc/rc.d/init.d/functions >>>> >>>> # Source networking configuration >>>> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >>>> #. /etc/sysconfig/network >>>> >>>> # Paths - Edit for your locations >>>> JAVA_BINARY=/usr/bin/java >>>> OFBIZ_HOME=/ofbiz >>>> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log >>>> >>>> # VM Options >>>> JAVA_VMOPTIONS="-Xms128M -Xmx512M -XX:MaxPermSize=512m" >>>> >>>> # Java arguments >>>> JAVA_ARGS="-jar ofbiz.jar" >>>> >>>> # *nix user ofbiz should run as (you must create this user first) >>>> OFBIZ_USER=ofbiz >>>> >>>> # OFBiz processes running >>>> ofbizprocs() { >>>> OFBIZ_PROCS=`/bin/ps h -o pid,args -C java | /bin/grep -e >>>> "$JAVA_ARGS" >>>> | /bin/egrep -o "^[[:space:]]*[[:digit:]]*"` >>>> } >>>> >>>> # Checking user... >>>> checkuser() { >>>> if [ "$USER" != "$OFBIZ_USER" ]; then >>>> echo failure >>>> echo >>>> echo "Only users root or $OFBIZ_USER should start/stop the >>>> application" >>>> exit 1 >>>> fi >>>> } >>>> >>>> # Start OFBiz >>>> start() { >>>> echo -n "Starting OFBiz: " >>>> checkuser >>>> ofbizprocs >>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>> echo failure >>>> echo >>>> echo "OFBiz is already running..." >>>> return 1 >>>> fi >>>> >>>> # All clear >>>> cd $OFBIZ_HOME >>>> umask 007 >>>> /bin/rm -f $OFBIZ_LOG >>>> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS >>$OFBIZ_LOG 2>>$OFBIZ_LOG& >>>> echo success >>>> return 0 >>>> } >>>> >>>> # Stop OFBiz >>>> stop() { >>>> echo -n "Stopping OFBiz: " >>>> checkuser >>>> ofbizprocs >>>> if [ "$OFBIZ_PROCS" == "" ]; then >>>> echo failure >>>> echo >>>> echo "OFBiz is not running..." >>>> return 1 >>>> fi >>>> >>>> # All clear >>>> cd $OFBIZ_HOME >>>> umask 007 >>>> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS -shutdown >>$OFBIZ_LOG >>>> ofbizprocs >>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>> # Let's try to -TERM >>>> /bin/kill -TERM $OFBIZ_PROCS >>>> fi >>>> ofbizprocs >>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>> # Let's try it the hard way! >>>> /bin/kill -9 $OFBIZ_PROCS >>>> fi >>>> ofbizprocs >>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>> echo failure >>>> echo >>>> echo "Some processes could not be stopped:" >>>> echo $OFBIZ_PROCS >>>> echo "A possible solution is to try this command once more!" >>>> return 1 >>>> else >>>> echo success >>>> return 0 >>>> fi >>>> } >>>> >>>> # If root is running this script, su to $OFBIZ_USER first >>>> # Note that under Debian/Ubuntu/etc. you should use instead >>>> # if [ "$USER" = "root" ]; then >>>> if [ "$UID" = "0" ]; then >>>> exec su - $OFBIZ_USER -c "$0 $1" >>>> fi >>>> >>>> case "$1" in >>>> 'start') >>>> start >>>> ;; >>>> 'stop') >>>> stop >>>> ;; >>>> 'restart') >>>> stop >>>> start >>>> ;; >>>> 'status') >>>> ofbizprocs >>>> if [ "$OFBIZ_PROCS" == "" ]; then >>>> echo "OFBiz is stopped" >>>> exit 1 >>>> else >>>> echo "OFBiz is running" >>>> exit 0 >>>> fi >>>> ;; >>>> *) >>>> echo "Usage: $0 {start|stop|kill|restart|status|help}" >>>> exit 1 >>>> ;; >>>> esac >>>> echo >>>> exit $? >>>> >>>> |
The real question is why you aren't on systemd by now
Chris On Jul 26, 2016 9:33 PM, "Craig Parker" <[hidden email]> wrote: > Pierre -- it's up and running. Thanks a bunch. I need to get POS running > too, but I'll take a break and just learn what I've got for the moment > > On 07/22/2016 12:01 PM, Pierre Smits wrote: > >> Hi Craig, >> >> I have found that the script for Ubuntu is of a lesser quality than the >> one >> for Debian, so that is what I have been using for various environments as >> a >> starting point. >> >> Best regards, >> >> Pierre Smits >> >> ORRTIZ.COM <http://www.orrtiz.com> >> OFBiz based solutions & services >> >> OFBiz Extensions Marketplace >> http://oem.ofbizci.net/oci-2/ >> >> On Fri, Jul 22, 2016 at 5:09 PM, Craig Parker <[hidden email]> >> wrote: >> >> I'm on Ubuntu 14.04 server (32 bit -- this is just an old clunker computer >>> I'm trying stuff out on) and the OFBIZ zip I grabbed is 13.07.03. >>> >>> There was an ubuntu script I tried grabbing instead of rc.ofbiz >>> (rc.ofbiz.for.ubuntu) a couple months ago, but didn't have any better >>> luck >>> with that. I think I'm going to land on Debian eventually, but if I can >>> troubleshoot this install I should be able to figure that one out. >>> >>> >>> On 07/22/2016 02:24 AM, Pierre Smits wrote: >>> >>> Hi Craig, >>>> >>>> May I ask what OS version you are using and what the version of OFBiz >>>> is? >>>> >>>> Best regards, >>>> >>>> Pierre Smits >>>> >>>> ORRTIZ.COM <http://www.orrtiz.com> >>>> >>>> OFBiz based solutions & services >>>> >>>> OFBiz Extensions Marketplace >>>> http://oem.ofbizci.net/oci-2/ >>>> >>>> On Fri, Jul 22, 2016 at 5:15 AM, Craig Parker <[hidden email]> >>>> wrote: >>>> >>>> I set this down because I couldn't get it running, but I'm picking it >>>> back >>>> >>>>> up. Still in the "using the demo" stage,a nd while I can start fine >>>>> with >>>>> ./ant start from the ofbiz directory, I can't seem to get it started >>>>> with >>>>> an /etc/init.d/ofbiz script. >>>>> I've tried a couple things, but the latest (back to square 1) spot I'm >>>>> in >>>>> is copying ofbizdir/tools/rc.ofbiz /etc/init.d/ofbiz >>>>> >>>>> Not sure what I read that told me this, but I commented out . >>>>> /etc/rc.d/init.d/functions (in the vicinity of line 30) and . >>>>> /etc/sysconfig/network near line 34, changed my path to /ofbiz (where I >>>>> unzipped it) and also replaced any instances of echo_ with just echo >>>>> (echo >>>>> followed by a space). >>>>> >>>>> So here's my script, and I can't get it running. Nor can I seem to >>>>> find a >>>>> log file anywhere that tells me what's going on. ofbiz owns the >>>>> /etc/init.d/ofbiz , and I'm starting it as root with sudo -u ofbiz >>>>> /etc/init.d/ofbiz restart >>>>> >>>>> #!/bin/sh >>>>> ##################################################################### >>>>> # Licensed to the Apache Software Foundation (ASF) under one >>>>> # or more contributor license agreements. See the NOTICE file >>>>> # distributed with this work for additional information >>>>> # regarding copyright ownership. The ASF licenses this file >>>>> # to you under the Apache License, Version 2.0 (the >>>>> # "License"); you may not use this file except in compliance >>>>> # with the License. You may obtain a copy of the License at >>>>> # >>>>> # http://www.apache.org/licenses/LICENSE-2.0 >>>>> # >>>>> # Unless required by applicable law or agreed to in writing, >>>>> # software distributed under the License is distributed on an >>>>> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY >>>>> # KIND, either express or implied. See the License for the >>>>> # specific language governing permissions and limitations >>>>> # under the License. >>>>> ##################################################################### >>>>> # >>>>> # ofbiz This shell script takes care of starting and stopping >>>>> # the OFBiz subsystem >>>>> # >>>>> # chkconfig: - 80 10 >>>>> # description: OFBiz server >>>>> >>>>> # Source function library >>>>> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >>>>> # => comment out and use "echo failure" and "echo success" in place of >>>>> echo failure and echo success (minor anyway) >>>>> #. /etc/rc.d/init.d/functions >>>>> >>>>> # Source networking configuration >>>>> # this does not exist in Debian/Ubuntu/etc. => see rc.ofbiz.for.debian >>>>> #. /etc/sysconfig/network >>>>> >>>>> # Paths - Edit for your locations >>>>> JAVA_BINARY=/usr/bin/java >>>>> OFBIZ_HOME=/ofbiz >>>>> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log >>>>> >>>>> # VM Options >>>>> JAVA_VMOPTIONS="-Xms128M -Xmx512M -XX:MaxPermSize=512m" >>>>> >>>>> # Java arguments >>>>> JAVA_ARGS="-jar ofbiz.jar" >>>>> >>>>> # *nix user ofbiz should run as (you must create this user first) >>>>> OFBIZ_USER=ofbiz >>>>> >>>>> # OFBiz processes running >>>>> ofbizprocs() { >>>>> OFBIZ_PROCS=`/bin/ps h -o pid,args -C java | /bin/grep -e >>>>> "$JAVA_ARGS" >>>>> | /bin/egrep -o "^[[:space:]]*[[:digit:]]*"` >>>>> } >>>>> >>>>> # Checking user... >>>>> checkuser() { >>>>> if [ "$USER" != "$OFBIZ_USER" ]; then >>>>> echo failure >>>>> echo >>>>> echo "Only users root or $OFBIZ_USER should start/stop the >>>>> application" >>>>> exit 1 >>>>> fi >>>>> } >>>>> >>>>> # Start OFBiz >>>>> start() { >>>>> echo -n "Starting OFBiz: " >>>>> checkuser >>>>> ofbizprocs >>>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>>> echo failure >>>>> echo >>>>> echo "OFBiz is already running..." >>>>> return 1 >>>>> fi >>>>> >>>>> # All clear >>>>> cd $OFBIZ_HOME >>>>> umask 007 >>>>> /bin/rm -f $OFBIZ_LOG >>>>> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS >>$OFBIZ_LOG >>>>> 2>>$OFBIZ_LOG& >>>>> echo success >>>>> return 0 >>>>> } >>>>> >>>>> # Stop OFBiz >>>>> stop() { >>>>> echo -n "Stopping OFBiz: " >>>>> checkuser >>>>> ofbizprocs >>>>> if [ "$OFBIZ_PROCS" == "" ]; then >>>>> echo failure >>>>> echo >>>>> echo "OFBiz is not running..." >>>>> return 1 >>>>> fi >>>>> >>>>> # All clear >>>>> cd $OFBIZ_HOME >>>>> umask 007 >>>>> $JAVA_BINARY $JAVA_VMOPTIONS $JAVA_ARGS -shutdown >>$OFBIZ_LOG >>>>> ofbizprocs >>>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>>> # Let's try to -TERM >>>>> /bin/kill -TERM $OFBIZ_PROCS >>>>> fi >>>>> ofbizprocs >>>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>>> # Let's try it the hard way! >>>>> /bin/kill -9 $OFBIZ_PROCS >>>>> fi >>>>> ofbizprocs >>>>> if [ "$OFBIZ_PROCS" != "" ]; then >>>>> echo failure >>>>> echo >>>>> echo "Some processes could not be stopped:" >>>>> echo $OFBIZ_PROCS >>>>> echo "A possible solution is to try this command once more!" >>>>> return 1 >>>>> else >>>>> echo success >>>>> return 0 >>>>> fi >>>>> } >>>>> >>>>> # If root is running this script, su to $OFBIZ_USER first >>>>> # Note that under Debian/Ubuntu/etc. you should use instead >>>>> # if [ "$USER" = "root" ]; then >>>>> if [ "$UID" = "0" ]; then >>>>> exec su - $OFBIZ_USER -c "$0 $1" >>>>> fi >>>>> >>>>> case "$1" in >>>>> 'start') >>>>> start >>>>> ;; >>>>> 'stop') >>>>> stop >>>>> ;; >>>>> 'restart') >>>>> stop >>>>> start >>>>> ;; >>>>> 'status') >>>>> ofbizprocs >>>>> if [ "$OFBIZ_PROCS" == "" ]; then >>>>> echo "OFBiz is stopped" >>>>> exit 1 >>>>> else >>>>> echo "OFBiz is running" >>>>> exit 0 >>>>> fi >>>>> ;; >>>>> *) >>>>> echo "Usage: $0 {start|stop|kill|restart|status|help}" >>>>> exit 1 >>>>> ;; >>>>> esac >>>>> echo >>>>> exit $? >>>>> >>>>> >>>>> > |
In reply to this post by Pranay Pandey-3
IntelliJ IDEA, hands down. The Java/Groovy debugging support is
superior. The IntelliJ Platform SDK is amazing, though not for the faint of heart. There is a learning curve, but it's worth it. There is a reason Google picked it to be the base for Android Studio. On 07/19/2016 12:13 AM, Pranay Pandey wrote: >> Eclipse or IntelliJ IDEA(Free version ) > > Both of these work well. I started using IntelliJ since last 6 months and > personally I like it very much. > > Best regards, > > Pranay Pandey > HotWax Systems > http://www.hotwaxsystems.com/ > > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> wrote: > >> Hi Puwanat, >> >> Please make sure that you are registered with OFBiz's mailing list. Else >> your post at Nabble will not reach the mailing list. >> >> Regards, >> James >> >> puwanat_sr wrote >>> Dear All >>> >>> I'm new with OFBIZ >>> May I ask you about the best IDE I should use for OFBIZ project >>> >>> Eclipse or IntelliJ IDEA(Free version ) >>> >>> Thank you very much >> >> >> >> >> >> -- >> View this message in context: >> http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > |
+1
IntelliJ IDEA is a great tool! Jacopo On Wed, Jul 27, 2016 at 7:58 AM, Forrest Rae <[hidden email]> wrote: > IntelliJ IDEA, hands down. The Java/Groovy debugging support is > superior. The IntelliJ Platform SDK is amazing, though not for the > faint of heart. There is a learning curve, but it's worth it. There is > a reason Google picked it to be the base for Android Studio. > > On 07/19/2016 12:13 AM, Pranay Pandey wrote: > >> Eclipse or IntelliJ IDEA(Free version ) > > > > Both of these work well. I started using IntelliJ since last 6 months and > > personally I like it very much. > > > > Best regards, > > > > Pranay Pandey > > HotWax Systems > > http://www.hotwaxsystems.com/ > > > > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> > wrote: > > > >> Hi Puwanat, > >> > >> Please make sure that you are registered with OFBiz's mailing list. Else > >> your post at Nabble will not reach the mailing list. > >> > >> Regards, > >> James > >> > >> puwanat_sr wrote > >>> Dear All > >>> > >>> I'm new with OFBIZ > >>> May I ask you about the best IDE I should use for OFBIZ project > >>> > >>> Eclipse or IntelliJ IDEA(Free version ) > >>> > >>> Thank you very much > >> > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html > >> Sent from the OFBiz - User mailing list archive at Nabble.com. > >> > > > |
Speaking of Intellij, I'm thinking of incorporating the plugin in gradle so
also fixup the classpath and everything. Is that something people would like? On Wed, Jul 27, 2016 at 9:20 AM, Jacopo Cappellato < [hidden email]> wrote: > +1 > > IntelliJ IDEA is a great tool! > > Jacopo > > On Wed, Jul 27, 2016 at 7:58 AM, Forrest Rae <[hidden email]> wrote: > > > IntelliJ IDEA, hands down. The Java/Groovy debugging support is > > superior. The IntelliJ Platform SDK is amazing, though not for the > > faint of heart. There is a learning curve, but it's worth it. There is > > a reason Google picked it to be the base for Android Studio. > > > > On 07/19/2016 12:13 AM, Pranay Pandey wrote: > > >> Eclipse or IntelliJ IDEA(Free version ) > > > > > > Both of these work well. I started using IntelliJ since last 6 months > and > > > personally I like it very much. > > > > > > Best regards, > > > > > > Pranay Pandey > > > HotWax Systems > > > http://www.hotwaxsystems.com/ > > > > > > On Tue, Jul 19, 2016 at 5:05 AM, james yong <[hidden email]> > > wrote: > > > > > >> Hi Puwanat, > > >> > > >> Please make sure that you are registered with OFBiz's mailing list. > Else > > >> your post at Nabble will not reach the mailing list. > > >> > > >> Regards, > > >> James > > >> > > >> puwanat_sr wrote > > >>> Dear All > > >>> > > >>> I'm new with OFBIZ > > >>> May I ask you about the best IDE I should use for OFBIZ project > > >>> > > >>> Eclipse or IntelliJ IDEA(Free version ) > > >>> > > >>> Thank you very much > > >> > > >> > > >> > > >> > > >> > > >> -- > > >> View this message in context: > > >> > > > http://ofbiz.135035.n4.nabble.com/What-IDE-for-Ofbiz-tp4688352p4689453.html > > >> Sent from the OFBiz - User mailing list archive at Nabble.com. > > >> > > > > > > |
Free forum by Nabble | Edit this page |