Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F422F17839 for ; Mon, 13 Apr 2015 16:15:03 +0000 (UTC) Received: (qmail 34940 invoked by uid 500); 13 Apr 2015 16:15:03 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 34911 invoked by uid 500); 13 Apr 2015 16:15:03 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 34899 invoked by uid 99); 13 Apr 2015 16:15:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 16:15:03 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rip057@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 16:14:33 +0000 Received: by iejt8 with SMTP id t8so68825592iej.2 for ; Mon, 13 Apr 2015 09:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=UQD5jQ4SC+NMDciFEebD338RkXqck/fzMds5pQCIsdI=; b=Lt1rt3ZO0oG0k+J02N13zN22qvas+i5jp1WJUtvkNCePaWmqvVCLUSTt+5Omdm4o0N S1EUKEjPrYgWEXgalC/pouEWl/5YhLcYQPwv6Ihqw1Sf9ojnN6gVZP3rt5pN897pWBi6 LK80bpemiWloEagQBjwCSWvddgj5tuF78JluTe8XcQlW6QO2QnJQnzDpjT0JlYwOxU2B VOgkg+OF04/DdfgTj9u6emcW7JpfZ5e/lTkbRaZU/O55dV4Pt7AnhNHwN/7z3uYUpMbe BEGk7bxt4ob8Ckw94k2koNEF1MFmZg3wV6u4nCq6gjEdNCqV9MsfaQ1Z0Xj0pYp3j/Lv nhQw== X-Received: by 10.107.130.145 with SMTP id m17mr21502765ioi.89.1428941536339; Mon, 13 Apr 2015 09:12:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.174.138 with HTTP; Mon, 13 Apr 2015 09:11:56 -0700 (PDT) In-Reply-To: <552BE608.2020107@artifact-software.com> References: <552BB723.1010402@les7arts.com> <552BE608.2020107@artifact-software.com> From: Chris Clark Date: Mon, 13 Apr 2015 11:11:56 -0500 Message-ID: Subject: Re: systemd.service startup service script file? To: user@ofbiz.apache.org, rwheeler@artifact-software.com Content-Type: multipart/alternative; boundary=001a113ed02aadabfa05139d60b2 X-Virus-Checked: Checked by ClamAV on apache.org --001a113ed02aadabfa05139d60b2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable this is part and parcel of why systemd is now the standard... you dont have to define things like that in systemd services... because the services are executed with full access to system things like environment variables... i mean i can try to cut and copy all the enviornment variables from the rc.d or init.d script but im telling you they are not necessary... can i not just run the ofbiz from commandline execution of java -Xms768M -Xmx1024M -Duser.language=3Den > /ofbiz/log/messages 2>>/ofbiz/ofbiz.13.07/runtime/logs/console.log if that is the case then those environment variables are already defined in the system and dont need to be defined again chris On Mon, Apr 13, 2015 at 10:51 AM, Ron Wheeler < rwheeler@artifact-software.com> wrote: > > Have you defined JAVA_HOME to match where Java is found? > > Ron > > On 13/04/2015 11:04 AM, Chris Clark wrote: > >> maybe you can help me... the new architecture requires an absolute path >> for >> the executable which is fine, but the java command >> >> /ofbiz/ofbiz.13.07/java -Xms768M -Xmx1024M -Duser.language=3Den > >> /ofbiz/log/messages 2>>/ofbiz/ofbiz.13.07/runtime/logs/console.log >> >> wont work because the absolute path to java >> >> is /usr/bin/java or for me it is >> truly /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.i386/bin/jav= a >> >> so what do i have to add to >> >> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.i386/bin/java >> -Xms768M -Xmx1024M -Duser.language=3Den > /ofbiz/log/messages >> 2>>/ofbiz/ofbiz.13.07/runtime/logs/console.log >> >> to have it run in the ofbiz directory of /ofbiz/ofbiz.13.07 >> >> java is like a third world language to me right now... im sure in a coup= le >> of months it will be like the back of my hand >> >> Chris >> >> On Mon, Apr 13, 2015 at 9:19 AM, Chris Clark wrote: >> >> right but rc.d files are extinct everything uses what is called systemd >>> to >>> boot up services as daemons now >>> >>> http://www.tecmint.com/systemd-replaces-init-in-linux/ >>> >>> this is another "architecture" for the daemonization process, it does n= ot >>> rely on bash scripts with all kinds of various thing defined but instea= d >>> relies on things that are called .service files that reside in the >>> /lib/systemd/system dir and control the daemonization process... I am a >>> red >>> hat man and this is the method they use, soon to be, if not already now= , >>> exclusively... Im sure out of the many many many people on this list >>> someone has made the switch, and I will go look in the install dir for = a >>> .service file... If i happen to get it, either from someone or >>> manufacture >>> it, can i upstream it? >>> >>> Chris >>> >>> On Mon, Apr 13, 2015 at 7:31 AM, Jacques Le Roux < >>> jacques.le.roux@les7arts.com> wrote: >>> >>> I guess you are referring to this page https://cwiki.apache.org/ >>>> confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service >>>> Look for rc.* files in your working copy >>>> >>>> HTH >>>> >>>> Jacques >>>> >>>> >>>> Le 13/04/2015 12:29, Chris Clark a =C3=A9crit : >>>> >>>> does anyone have one of these... the wiki has a very much out dated >>>>> init.d >>>>> script and im trying to make my own but im having issues >>>>> >>>>> >>>>> > > -- > Ron Wheeler > President > Artifact Software Inc > email: rwheeler@artifact-software.com > skype: ronaldmwheeler > phone: 866-970-2435, ext 102 > > --001a113ed02aadabfa05139d60b2--