Hello,
Doy you know some Systemd script example to run Ofbiz as a service? I have seen to SystemV here --> https://cwiki.apache.org/confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service Best regards |
Pretty sure this topic has been gone over more than once just in the
mailing list alone, please utfse first https://lists.apache.org/list.html?*@ofbiz.apache.org:lte=5y:Systemd I don't even use of is any more but am pretty sure there are systemd service files setup in there On Dec 3, 2017 2:38 AM, "Javier H." <[hidden email]> wrote: > Hello, > > Doy you know some Systemd script example to run Ofbiz as a service? > > I have seen to SystemV here --> https://cwiki.apache.org/ > confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service > > Best regards > |
On 2017-12-03 10:01, Chris Clark <[hidden email]> wrote: > Pretty sure this topic has been gone over more than once just in the > mailing list alone, please utfse first > https://lists.apache.org/list.html?*@ofbiz.apache.org:lte=5y:Systemd > I don't even use of is any more but am pretty sure there are systemd > service files setup in there > > > On Dec 3, 2017 2:38 AM, "Javier H." <[hidden email]> wrote: > > > Hello, > > > > Doy you know some Systemd script example to run Ofbiz as a service? > > > > I have seen to SystemV here --> https://cwiki.apache.org/ > > confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service > > > > Best regards > > > I have tested a first try like this and it works in Ubuntu Server, /etc/systemd/system/ofbizd.service ########################################## [Unit] Description=OFBiz Service Daemon After=network.target auditd.service [Service] User=ofbiz WorkingDirectory=/opt/ofbiz-16.11.03 ExecStart=/opt/ofbiz-16.11.03/gradlew ofbiz ExecStop=/opt/ofbiz-16.11.03/gradlew 'ofbiz --shutdown' [Install] WantedBy=multi-user.target ########## End of file ################### sudo systemctl status ofbizd.service â ofbizd.service - OFBiz Service Daemon Loaded: loaded (/etc/systemd/system/ofbizd.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2017-12-04 04:50:24 WET; 45s ago Main PID: 3956 (java)f Tasks: 95 (limit: 4915) CGroup: /system.slice/ofbizd.service ââ3956 java -Dorg.gradle.appname=gradlew -classpath /opt/ofbiz-16.11.03/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.G ââ3991 /usr/lib/jvm/java-8-oracle/bin/java -Xms128M -Xmx1024M -Dfile.encoding=UTF-8 -Duser.country=ES -Duser.language=es -Duser.variant dic 04 04:50:46 host1 gradlew[3956]: 2017-12-04 04:50:46,265 |main |CatalinaContainer |I| Started Apache Tomcat/8.0.42 dic 04 04:50:46 host1 gradlew[3956]: 2017-12-04 04:50:46,265 |main |ContainerLoader |I| Started container catalina-co dic 04 04:50:46 host1 gradlew[3956]: 2017-12-04 04:50:46,265 |main |ContainerLoader |I| Starting container birt-conta dic 04 04:50:46 host1 gradlew[3956]: 2017-12-04 04:50:46,265 |main |BirtContainer |I| Start BIRT container dic 04 04:50:46 host1 gradlew[3956]: 2017-12-04 04:50:46,285 |main |BirtContainer |I| Startup BIRT platform dic 04 04:50:47 host1 gradlew[3956]: 2017-12-04 04:50:47,391 |main |BirtContainer |I| Create factory object dic 04 04:50:47 host1 gradlew[3956]: 2017-12-04 04:50:47,426 |main |BirtContainer |I| Create report engine dic 04 04:50:47 host1 gradlew[3956]: 2017-12-04 04:50:47,551 |main |BirtContainer |I| BIRT supported formats: xlsx, dic 04 04:50:47 host1 gradlew[3956]: 2017-12-04 04:50:47,551 |main |ContainerLoader |I| Started container birt-contai dic 04 04:50:48 host1 gradlew[3956]: 2017-12-04 04:50:48,390 |OFBiz-JobPoller |JobManager |I| No crashed jobs to re-schedul sudo systemctl stop ofbizd.service sudo systemctl status ofbizd.service â ofbizd.service - OFBiz Service Daemon Loaded: loaded (/etc/systemd/system/ofbizd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2017-12-04 04:53:51 WET; 8s ago Process: 4125 ExecStop=/opt/ofbiz-16.11.03/gradlew ofbiz --shutdown (code=exited, status=0/SUCCESS) Process: 3956 ExecStart=/opt/ofbiz-16.11.03/gradlew ofbiz (code=exited, status=143) Main PID: 3956 (code=exited, status=143) dic 04 04:53:51 host1 gradlew[3956]: 2017-12-04 04:53:51,150 |OFBiz-AdminServer |ContainerLoader |I| Stopped container service-con dic 04 04:53:51 host1 gradlew[3956]: 2017-12-04 04:53:51,150 |OFBiz-AdminServer |ContainerLoader |I| Stopping container delegator- dic 04 04:53:51 host1 gradlew[3956]: 2017-12-04 04:53:51,150 |OFBiz-AdminServer |ContainerLoader |I| Stopped container delegator-c dic 04 04:53:51 host1 gradlew[3956]: 2017-12-04 04:53:51,150 |OFBiz-AdminServer |ContainerLoader |I| Stopping container component- dic 04 04:53:51 host1 gradlew[3956]: 2017-12-04 04:53:51,150 |OFBiz-AdminServer |ContainerLoader |I| Stopped container component-c dic 04 04:53:51 host1 gradlew[3956]: 2017-12-04 04:53:51,151 |OFBiz-JobPoller |JobPoller |I| JobPoller thread stopped. dic 04 04:53:51 host1 systemd[1]: ofbizd.service: Main process exited, code=exited, status=143/n/a dic 04 04:53:51 host1 systemd[1]: Stopped OFBiz Service Daemon. dic 04 04:53:51 host1 systemd[1]: ofbizd.service: Unit entered failed state. dic 04 04:53:51 host1 systemd[1]: ofbizd.service: Failed with result 'exit-code'. Best regards |
Free forum by Nabble | Edit this page |