<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Starting process in background in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566628#M838677</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have to use "prefix" nohup before the command, which you want to run in background.&lt;BR /&gt;You canwrite a script:&lt;BR /&gt;command1&lt;BR /&gt;command2 &amp;lt;&amp;lt; EOF&lt;BR /&gt;INPUT&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and run the script as &lt;BR /&gt;nohup script &amp;amp;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
    <pubDate>Mon, 20 Jun 2005 01:44:40 GMT</pubDate>
    <dc:creator>Victor Fridyev</dc:creator>
    <dc:date>2005-06-20T01:44:40Z</dc:date>
    <item>
      <title>Starting process in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566626#M838675</link>
      <description>Hey Guys,&lt;BR /&gt;&lt;BR /&gt;I am starting the weblogic server process on hpux 11i but whenever i close my terminal the weblogic admin and server process stops.&lt;BR /&gt;I tried to start them in background mode but was not able to enter password to start.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest workaround ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 01:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566626#M838675</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-06-20T01:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566627#M838676</link>
      <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;   Not too sure whether this will healp ,as i do not know how weblogic starts.. but, never the less try this..so assuming command "weblogadmin" is the command to start welogic, username : web, password : pass123&lt;BR /&gt;&lt;BR /&gt;in your prompt..&lt;BR /&gt;&lt;BR /&gt;nohup /opt/weblogic/bin/weblogadmin &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;web&lt;BR /&gt;pass123&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;regards..</description>
      <pubDate>Mon, 20 Jun 2005 01:27:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566627#M838676</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2005-06-20T01:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566628#M838677</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have to use "prefix" nohup before the command, which you want to run in background.&lt;BR /&gt;You canwrite a script:&lt;BR /&gt;command1&lt;BR /&gt;command2 &amp;lt;&amp;lt; EOF&lt;BR /&gt;INPUT&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and run the script as &lt;BR /&gt;nohup script &amp;amp;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 20 Jun 2005 01:44:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566628#M838677</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-06-20T01:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566629#M838678</link>
      <description>Hello Shiv,&lt;BR /&gt;&lt;BR /&gt;The weblogic server can be started as:&lt;BR /&gt;nohup sh ./startWebLogic.sh &amp;gt; wlsa.log &amp;amp;&lt;BR /&gt;&lt;BR /&gt;You can see the status by executing command tail -f wlsa.log&lt;BR /&gt;&lt;BR /&gt;The UserName and password can be stored in file boot.properties of your domain folder e.g. /app/bea/user_projects/domains/mydomain/&lt;BR /&gt;&lt;BR /&gt;------ Steps to create boot.properties file--&lt;BR /&gt;Change to the /app/bea/user_projects/domains/mydomain directory&lt;BR /&gt;by typing:&lt;BR /&gt;cd /app/bea/user_projects/domains/mydomain &lt;BR /&gt;&lt;BR /&gt;Using a text editor (such as vi), edit the boot.properties file by typing:&lt;BR /&gt;vi boot.properties [Enter]&lt;BR /&gt;&lt;BR /&gt;Enter the following text; then save and exit the file:&lt;BR /&gt;username=system&lt;BR /&gt;password=weblogic&lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;&lt;BR /&gt;For more detail:&lt;BR /&gt;&lt;A href="http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html" target="_blank"&gt;http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ganesha Sridhara&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 23:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566629#M838678</guid>
      <dc:creator>Ganesha Sridhara</dc:creator>
      <dc:date>2005-06-20T23:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566630#M838679</link>
      <description>Hi Shiv,&lt;BR /&gt;  &lt;BR /&gt;starting the weblogic server is indeed quite involved, as is any application written in Java as it seems to me.&lt;BR /&gt;Many people frown upon Perl as being too baroque, but boy compare this to the line clutter for the invocation of the java interpreter alone needed to start this beast.&lt;BR /&gt; &lt;BR /&gt;For instance the java interpreter starting command from the wrapper script of one of our Weblogic servers consists of almost 500 characters, with whitespace stripped off of course.&lt;BR /&gt; &lt;BR /&gt;$ grep java startepbndomain.sh|tr -d \\040|wc -c&lt;BR /&gt;     487&lt;BR /&gt; &lt;BR /&gt;I won't disclose the content of this script here as it contains the password that is required to initiate the startup method,&lt;BR /&gt;and because there are too many rather distracting arguments for the Java interpreter probably very special to our weblogic server.&lt;BR /&gt;That said however, in that line is the passing of the required password to the method weblogic.management.password to the interpreter by a -D switch.&lt;BR /&gt; &lt;BR /&gt;-Dweblogic.management.password=&lt;BR /&gt; &lt;BR /&gt;I'm not into Java, and in particular Weblogic beans, but I consider this method to be from a basic custom class of the weblogic framework that most weblogic implementations will make use of.&lt;BR /&gt; &lt;BR /&gt;Because of this you should make your wrapper script readable only to the user under whose ID the weblogic server runs.&lt;BR /&gt; &lt;BR /&gt;Because I also had the need to get all weblogic instances started on this box (there are several), as well as stopped, at system startup/shutdown I wrote a little init/rc script that invokes the "hidden" real server startup scripts (the ones with the mentioned line clutter above).&lt;BR /&gt; &lt;BR /&gt;As already the others have replied,&lt;BR /&gt;it simply su-es into the account the weblogic server is run under and puts the call under nohup (see man nohup) together with a trailing ampersand.&lt;BR /&gt;This will run the job in the background and detach it from the invoking shell.&lt;BR /&gt; &lt;BR /&gt;I simply modified the /sbin/init.d/template &lt;BR /&gt;script, and attached the result (with CRs to please Winows Webbrowsers).&lt;BR /&gt;As you may notice the template provides a few custom functions (like kill_proc()) which I didn't make use of.&lt;BR /&gt;Thus these functions should rather have been removed.&lt;BR /&gt;Just have a look at the start) and stop) bodies of the case/switch construct.&lt;BR /&gt;For shutdown I also make use of a weblogic shutdown shell script that connects to the running server(s) (so again password is required) and brings them down by invoking a supplied shutdown method.&lt;BR /&gt; &lt;BR /&gt;However this isn't really necessary as I found out.&lt;BR /&gt;Is it quite safe for a root process to send the master java thread a SIGTERM to bring down the weblogic server smoothly.&lt;BR /&gt;However, logging (n.b. Weblogic is making haevy use of log4j with almost excessive logging) may be a bit more restricted if one stops the server this way.&lt;BR /&gt;That's why I use this second method as sort of failback if something's wrong with the shutdown script.&lt;BR /&gt;(Apart from this, it's good to know to have this cludge as a sysadmin with little knowledge of Weblogic innards).</description>
      <pubDate>Tue, 21 Jun 2005 01:35:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-process-in-background/m-p/3566630#M838679</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-06-21T01:35:11Z</dc:date>
    </item>
  </channel>
</rss>

