[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-7796:
----------------------------------------

Interesting, I was indeed able to shutdown/start OFBiz locally using
bq.  java -jar build\libs\ofbiz.jar \-\-shutdown/\-\-start
I guess the name changed since the unit tests introduction.

About
{quote}
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*
{quote}
# of course :D
# +1
# Why not but as said above in the script anyway:
bq.  # Paths - Edit for your locations
{quote}
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.
{quote}
This is something I like, I'm always reluctant to black boxes... I'd commit the patch but we need to agree on the ofbiz.jar name (path included). I'd then adapt also the other rc. scripts... *if nobody disagree*... Opinions?

Ah, also while looking at it I noticed we have still the old jars in old build/lib dirs. We need to remove all the svn:ignore related, and everybody should remove their old local build dirs. I'll create a Jira for 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)