<?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: Processes in startup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980210#M419680</link>
    <description>It's quite simple. In your modified /sbin/init.d/ copy of the template file, look for the case statement with the start) section, you then add&lt;BR /&gt;su userprocs -c /xxx/yyy/start_procs.sh &lt;BR /&gt;&lt;BR /&gt;NOTE: Your user "userprocs" violates the traditional 8 character login limit so it should be a shorter name. /xxx/yyy/start_procs.sh should be the absolute pathname to whereever your script is located and it should have an explicit "shebang" line like&lt;BR /&gt;#!/usr/sbin/sh&lt;BR /&gt;as the very first like of your script. Any needed arguments can also be passed to start_procs.sh as additional arguments following the command name in the su command.&lt;BR /&gt;</description>
    <pubDate>Mon, 22 May 2006 16:50:12 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-05-22T16:50:12Z</dc:date>
    <item>
      <title>Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980204#M419674</link>
      <description>Hi ...&lt;BR /&gt;I have a script named start_procs.sh&lt;BR /&gt;I need put it in startup&lt;BR /&gt;on unix B.11.11&lt;BR /&gt;&lt;BR /&gt;how can i do it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 22 May 2006 13:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980204#M419674</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-05-22T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980205#M419675</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use the /sbin/init.d/template and copy as another filename - say - /sbin/init.d/myscript&lt;BR /&gt;Add your commands in the start and stop section for starting and stopping your script.&lt;BR /&gt;Then goto /sbin/rc3.d [ Assuming that you want to start the process at init level 3 ]&lt;BR /&gt;ln -s /sbin/init.d/myscript S900myscript&lt;BR /&gt;goto /sbin/rc0.d&lt;BR /&gt;ln -s /sbin/init.d/myscript K900myscript&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pls refer to this thread for more inputs and advices from others.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029055" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029055&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Mon, 22 May 2006 14:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980205#M419675</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-22T14:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980206#M419676</link>
      <description>Go to /sbin/init.d and copy the file template to another file, e.g. myscript. In the start) section of this file is where you put the call to your script. Next decide upon the run-level that you want to start your script. Typically, run-level 3. Create a symbolic link to /sbin/init.d/rcN.d where N is the run-level.&lt;BR /&gt;&lt;BR /&gt;e.g ln -s /sbin/init.d/myscript /sbin/rc3.d/S800myscript. If you also want to stop the process automatically then put the appropriate commands in the stop) section and create a symbolin link in the N-1 directory. &lt;BR /&gt;e.g ln -s /sbin/init.d/myscript /sbin/rc2.d/K200myscript.&lt;BR /&gt;&lt;BR /&gt;Note that, by convention, your 3-digit 'S' value + your 3-digit 'K' value should add to 1000. This tends to make the start and stop occur in the correct order.</description>
      <pubDate>Mon, 22 May 2006 14:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980206#M419676</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-22T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980207#M419677</link>
      <description>Hi ...&lt;BR /&gt;thanks ...&lt;BR /&gt;i have other doubt, could be start processes from startup under an owner differet to root?&lt;BR /&gt;&lt;BR /&gt;I mean, i require some processes be running with userid named "userprocs" which is differetn to root.&lt;BR /&gt;&lt;BR /&gt;can i put these processes to be run into a script and they be run with other userid different to root?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 22 May 2006 14:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980207#M419677</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-05-22T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980208#M419678</link>
      <description>The rcN.d scripts run as root but you can start your scripts within the rc scripts using an "su username -c command arg1 arg2 ..." command. It's normally not a good idea to use the "su - username -c command arg1 arg2 ..." method to execute username's .profile because the .profile will probably have commands (tset, stty, tput, tabs) that assume stdin is a terminal and will hand or fail otherwise. If you must set environment variables then set them explicitly in your script.</description>
      <pubDate>Mon, 22 May 2006 15:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980208#M419678</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-22T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980209#M419679</link>
      <description>Hi, acorddng is telling Clay, how must i use "su" command?&lt;BR /&gt;could you give an example please ?&lt;BR /&gt;&lt;BR /&gt;"su username -c command arg1 arg2 ..." &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks ...</description>
      <pubDate>Mon, 22 May 2006 16:39:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980209#M419679</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-05-22T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980210#M419680</link>
      <description>It's quite simple. In your modified /sbin/init.d/ copy of the template file, look for the case statement with the start) section, you then add&lt;BR /&gt;su userprocs -c /xxx/yyy/start_procs.sh &lt;BR /&gt;&lt;BR /&gt;NOTE: Your user "userprocs" violates the traditional 8 character login limit so it should be a shorter name. /xxx/yyy/start_procs.sh should be the absolute pathname to whereever your script is located and it should have an explicit "shebang" line like&lt;BR /&gt;#!/usr/sbin/sh&lt;BR /&gt;as the very first like of your script. Any needed arguments can also be passed to start_procs.sh as additional arguments following the command name in the su command.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 May 2006 16:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980210#M419680</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-22T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Processes in startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980211#M419681</link>
      <description>Dear A. Clay Stephenson:&lt;BR /&gt;&lt;BR /&gt;Really, really thanks a lot for your definition about su command ... really you explains things an easy way!!!!&lt;BR /&gt;if i could give you more points, i will.&lt;BR /&gt;&lt;BR /&gt;thanks !!!&lt;BR /&gt;Manuales.</description>
      <pubDate>Mon, 22 May 2006 18:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes-in-startup/m-p/4980211#M419681</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-05-22T18:02:42Z</dc:date>
    </item>
  </channel>
</rss>

