[ 
https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407892#comment-15407892
 ] 

Pierre Smits commented on OFBIZ-7796:
-------------------------------------

adding commented out code is like not having the code in...

I am confused here. Why do you insist on having this 'gradlew ofbiz' in the 
codebase for a rc script that is intended for production servers? Rc scripts 
are intended to be used for services (e.g. to be triggered by cron script or 
when a server). 

As I have shown in 
https://issues.apache.org/jira/browse/OFBIZ-7796?focusedCommentId=15402191&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15402191

starting through java -jar build/libs/ofbiz.jar is seconds faster than 'gradlew 
ofbiz'. 
These are precious seconds, when an IT department (or even an external hosting 
provider) must meet the requirements of an uptime SLA. With a 5 nines SLA that 
leaves only 26.3 seconds per month. And each custom component added to the 
OFBiz default increases to the startup time. 

And for what? ./gradlew ofbiz basically does nothing more than checking what 
should already be there (and it gets worse when - due to some unexplicable 
mishap - gradlew needs to download external libraries). 
To get an indication what it does before the OFBiz service actually starts, I 
suggest you run './gradlew ofbiz -- debut > gradlew-ofbiz-start-debugge.txt' 
and have a look at the generated text file. 

> Running OFBiz as a service fails
> --------------------------------
>
>                 Key: OFBIZ-7796
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7796
>             Project: OFBiz
>          Issue Type: Sub-task
>    Affects Versions: Trunk
>         Environment: Ubuntu 16.04, openjdk-8-jdk
>            Reporter: Pierre Smits
>            Assignee: Pierre Smits
>            Priority: Blocker
>         Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, 
> OFBIZ-7796-rc.ofbiz.for.debian-v2.patch
>
>
> In a new ubuntu environment I performed a checkout  from trunk and ran the 
> loadDefault build script.
> After this had completed, I moved the ofbiz directory from my user folder to 
> the /opt folder, and configured the Ubuntu environment to be able to run 
> OFBiz as a service.
> This entails:
> * deploy a script in /etc/init.d
> * set the correct permissions of the service script
> * create the service user 
> * changed the owner and ownergroup of the files and folders in /opt/ofbiz
> and then fire the service:
> sudo /etc/init.d/ofbiz start
> This normally starts the proces java -jar ofbiz.jar
> But now nothing happens.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to