<?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 Rc start up scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420891#M79</link>
    <description>I need to start up a sybase database engine when the system is rebooted.  But I &lt;BR /&gt;do not want the engine started by root.  Is there a way I can get the sybase &lt;BR /&gt;DBA ID to execute the rc script file in run level 3?</description>
    <pubDate>Tue, 04 Apr 2000 08:35:35 GMT</pubDate>
    <dc:creator>Ken Banville_2</dc:creator>
    <dc:date>2000-04-04T08:35:35Z</dc:date>
    <item>
      <title>Rc start up scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420891#M79</link>
      <description>I need to start up a sybase database engine when the system is rebooted.  But I &lt;BR /&gt;do not want the engine started by root.  Is there a way I can get the sybase &lt;BR /&gt;DBA ID to execute the rc script file in run level 3?</description>
      <pubDate>Tue, 04 Apr 2000 08:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420891#M79</guid>
      <dc:creator>Ken Banville_2</dc:creator>
      <dc:date>2000-04-04T08:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rc start up scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420892#M80</link>
      <description>I'm not familiar with how Sybase starts up, but I do something similar for &lt;BR /&gt;informix -&lt;BR /&gt;&lt;BR /&gt;I have an RC script that does the following:&lt;BR /&gt;&lt;BR /&gt;     su - informix -c "oninit"&lt;BR /&gt;&lt;BR /&gt;The rc script itself is run as root, but the 'su' command runs the oninit &lt;BR /&gt;command as the informix user and my engine comes up with the informix uid &lt;BR /&gt;rather than root.  &lt;BR /&gt;&lt;BR /&gt;If starting up sybase involves a complicated script that can't cleanly be &lt;BR /&gt;placed into an su command, you should be able to execute the script directly &lt;BR /&gt;from su.&lt;BR /&gt;&lt;BR /&gt;I'm assuming you know how to create the startup scripts and place links in &lt;BR /&gt;/sbin/rc#.d as appropriate.  If you need help with that, let me know.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Evan</description>
      <pubDate>Tue, 04 Apr 2000 08:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420892#M80</guid>
      <dc:creator>Evan Day_1</dc:creator>
      <dc:date>2000-04-04T08:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rc start up scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420893#M81</link>
      <description>A construct I use a lot is something like this&lt;BR /&gt;&lt;BR /&gt;if [ "`whoami`" != "&lt;USERIWANNABE&gt;" ]&lt;BR /&gt;then&lt;BR /&gt;  if [ "`whoami`" = "root" ]&lt;BR /&gt;  then&lt;BR /&gt;    su &lt;USERIWANNABE&gt; -c "$0 $*"&lt;BR /&gt;    exit $?&lt;BR /&gt;  fi&lt;BR /&gt;else&lt;BR /&gt;  echo "Only &lt;USERIWANNABE&gt; wants to run `basename $0`"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;Gav&lt;/USERIWANNABE&gt;&lt;/USERIWANNABE&gt;&lt;/USERIWANNABE&gt;</description>
      <pubDate>Mon, 06 Aug 2001 14:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420893#M81</guid>
      <dc:creator>Gavin Kerr</dc:creator>
      <dc:date>2001-08-06T14:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rc start up scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420894#M82</link>
      <description>HI&lt;BR /&gt;Using&lt;BR /&gt;su - &lt;USER_ID&gt; -c "command to start" in the startup script should take care of starting required processes/database by said user id.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.&lt;/USER_ID&gt;</description>
      <pubDate>Mon, 06 Aug 2001 15:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420894#M82</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-08-06T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rc start up scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420895#M83</link>
      <description>Create a short shell script under /sbin/init.d/startmydb.&lt;BR /&gt;Symbolic link it to /sbin/rc3.d/S999mydb.&lt;BR /&gt;Symbolic link it to /sbin/rc2.d/K001mydb also.&lt;BR /&gt;Be sure to follow the rules of "rc" scripts (have a start,stop test within the script).&lt;BR /&gt;&lt;BR /&gt;In the start portion, use the recommendation by Mr Evans.&lt;BR /&gt;&lt;BR /&gt;-- Rod H</description>
      <pubDate>Mon, 06 Aug 2001 15:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420895#M83</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-08-06T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rc start up scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420896#M84</link>
      <description>Hi Ken,&lt;BR /&gt;&lt;BR /&gt;Using the command :&lt;BR /&gt;&lt;BR /&gt;su - sybaseDbaUser  -c "commad -option arg0 ...argn"&lt;BR /&gt;&lt;BR /&gt;Magdi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Aug 2001 17:32:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-start-up-scripts/m-p/2420896#M84</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-06T17:32:40Z</dc:date>
    </item>
  </channel>
</rss>

