[
https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15758704#comment-15758704 ]
Jacques Le Roux commented on OFBIZ-7796:
----------------------------------------
I agree that having an option/parameter to switch rc scripts, and alike, to use Gradle or bare Java is the best way.
We have then less things to maintain. Somewhere (I have not the guts to now search where) I proposed to comment out the Java lines Pierre proposed and have the Gradle lines active. Finally we kept only the Gradle lines. I say that because the work was somehow already done and it could be reused. It just missed Michael's good idea of an option to switch instead of commenting off/on by hand.
Of course if we propose the bare Java way we need to document how to use it from the Gradle situation. I think OFBIZ-7783 is related to that and we should come to a conclusion before things are too much diluted and lost!
> 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
> Priority: Minor
> 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)