<?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 Start/Stop script terminates even with nohup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717975#M252227</link>
    <description>Guys&lt;BR /&gt;&lt;BR /&gt;Hopefully someone can help me with this as I am starting to pull my hair out....&lt;BR /&gt;&lt;BR /&gt;I have a script under /sbin/init.d called stream. Bascially it sets up environ variable and then issues a command to run a command as a specific user....&lt;BR /&gt;&lt;BR /&gt;STREAM_CONFIG=/stream/config&lt;BR /&gt;&lt;BR /&gt;nohup su ssr -c $STREAM_CONFIG/stream.rc &amp;gt;&amp;gt; $log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;The stream.rc file looks like....&lt;BR /&gt;cd /stream/stream/bin&lt;BR /&gt;./stream -p 4501 -s ssr &amp;amp;&lt;BR /&gt;&lt;BR /&gt;It rellies on Oracle running. Oracle gets started up before S855stream If I start up via /sbin/init.d/stream start the process starts and stays up and the log file reports that it is happy.&lt;BR /&gt;&lt;BR /&gt;I have linked it ... /sbin/init.d/stream in the /sbin/rc3.d as S855stream &lt;BR /&gt;&lt;BR /&gt;I can do.. /sbin/rc3.d/S855stream start and again the process starts and stays up.&lt;BR /&gt;&lt;BR /&gt;If I reboot the system - the process starts and dies as soon as the login prompt appears on the console. The log file reports 'User Abort'&lt;BR /&gt;&lt;BR /&gt;I did try it though cron ( thinking that perhaps some PATHS/ENV werent being picked up ) that worked!&lt;BR /&gt;&lt;BR /&gt;Any ideas of how I can keep this process running or another way of starting it up please?&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Jan 2006 09:01:45 GMT</pubDate>
    <dc:creator>Susan Prosser</dc:creator>
    <dc:date>2006-01-26T09:01:45Z</dc:date>
    <item>
      <title>Start/Stop script terminates even with nohup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717975#M252227</link>
      <description>Guys&lt;BR /&gt;&lt;BR /&gt;Hopefully someone can help me with this as I am starting to pull my hair out....&lt;BR /&gt;&lt;BR /&gt;I have a script under /sbin/init.d called stream. Bascially it sets up environ variable and then issues a command to run a command as a specific user....&lt;BR /&gt;&lt;BR /&gt;STREAM_CONFIG=/stream/config&lt;BR /&gt;&lt;BR /&gt;nohup su ssr -c $STREAM_CONFIG/stream.rc &amp;gt;&amp;gt; $log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;The stream.rc file looks like....&lt;BR /&gt;cd /stream/stream/bin&lt;BR /&gt;./stream -p 4501 -s ssr &amp;amp;&lt;BR /&gt;&lt;BR /&gt;It rellies on Oracle running. Oracle gets started up before S855stream If I start up via /sbin/init.d/stream start the process starts and stays up and the log file reports that it is happy.&lt;BR /&gt;&lt;BR /&gt;I have linked it ... /sbin/init.d/stream in the /sbin/rc3.d as S855stream &lt;BR /&gt;&lt;BR /&gt;I can do.. /sbin/rc3.d/S855stream start and again the process starts and stays up.&lt;BR /&gt;&lt;BR /&gt;If I reboot the system - the process starts and dies as soon as the login prompt appears on the console. The log file reports 'User Abort'&lt;BR /&gt;&lt;BR /&gt;I did try it though cron ( thinking that perhaps some PATHS/ENV werent being picked up ) that worked!&lt;BR /&gt;&lt;BR /&gt;Any ideas of how I can keep this process running or another way of starting it up please?&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 09:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717975#M252227</guid>
      <dc:creator>Susan Prosser</dc:creator>
      <dc:date>2006-01-26T09:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop script terminates even with nohup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717976#M252228</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;If this process depends on oracle, starting it with nohup inadvisable. This is because the startup will not wait and is run in background. This will let other process start first.&lt;BR /&gt;&lt;BR /&gt;Steps to fix.&lt;BR /&gt;&lt;BR /&gt;1) Get it to start correctly on the command line. &lt;BR /&gt;2) Create a script that does what you did on the command line.&lt;BR /&gt;3) Test the script.&lt;BR /&gt;4) Add a line to the script env &amp;gt; /tmp/normal.txt&lt;BR /&gt;5) Add env &amp;gt; /tmp/startup.txt to the normal startup.&lt;BR /&gt;6) Compare the two files. Make the environment in the startup script the same as the one from the working script.&lt;BR /&gt;7) Reboot, the service will start.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 26 Jan 2006 09:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717976#M252228</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-26T09:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop script terminates even with nohup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717977#M252229</link>
      <description>I will advice that you use full path names for all your file references. instead of $&lt;WHATEVER&gt;  then try to add some debugging lines to it. Running scripts from during startup or cron mostly require this.&lt;/WHATEVER&gt;</description>
      <pubDate>Thu, 26 Jan 2006 09:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717977#M252229</guid>
      <dc:creator>Lolupee</dc:creator>
      <dc:date>2006-01-26T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop script terminates even with nohup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717978#M252230</link>
      <description>Hi Kevin:&lt;BR /&gt;&lt;BR /&gt;You are no-hupping the 'su'.  That's not what you want!  To see what's happening (in part), at command line, do:&lt;BR /&gt;&lt;BR /&gt;# nohup su someuser -c somescript&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jan 2006 09:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-script-terminates-even-with-nohup/m-p/3717978#M252230</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-26T09:49:45Z</dc:date>
    </item>
  </channel>
</rss>

