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

Pierre Smits edited comment on OFBIZ-7796 at 7/18/16 9:01 AM:
--------------------------------------------------------------

I have tested *java -jar build/libs.ofbiz-gradle.jar --start* in my dev 
environment and it works. In another cli I used  *java -jar 
build/libs.ofbiz-gradle.jar --shutdown* and it stops the task running in the 
first cli.

re:: *generic enough situation*
* No, it is - as the name of the script indicates - intended for *debian* based 
systems.
* I have changed the *JAVA_BINARY* variable from hardcoded and old java version 
1.4.2 to generic $JAVA_HOME
* I have changed the *OFBIZ_HOME* variable from location in users home folder 
to more generic */opt/ofbiz*

re: *why use java directly*
In UAT an PROD environments you want the entire OFBIZ setup running as clean, 
mean and lean as possible. That also include shortest startup time possible 
(argument behind that: minimal downtime with respect to SLAs). Building (or 
checking the build) the OFBiz implementation is not adding to that.


was (Author: pfm.smits):
I have tested *java -jar build/libs.ofbiz-gradle.jar --start* in my dev 
environment and it works. In another cli I used  *java -jar 
build/libs.ofbiz-gradle.jar --shutdownt* and it stops the task running in the 
first cli.

re:: *generic enough situation*
* No, it is - as the name of the script indicates - intended for *debian* based 
systems.
* I have changed the *JAVA_BINARY* variable from hardcoded and old java version 
1.4.2 to generic $JAVA_HOME
* I have changed the *OFBIZ_HOME* variable from location in users home folder 
to more generic */opt/ofbiz*

re: *why use java directly*
In UAT an PROD environments you want the entire OFBIZ setup running as clean, 
mean and lean as possible. That also include shortest startup time possible 
(argument behind that: minimal downtime with respect to SLAs). Building (or 
checking the build) the OFBiz implementation is not adding to that.

> 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
>
>
> 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