<?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: Informix Startup Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308755#M185161</link>
    <description>Pete,&lt;BR /&gt;&lt;BR /&gt;looking at your script, it mentions $INFORMIXDIR in the PATH at the top before you have sourced the informix script in rc.config.d.&lt;BR /&gt;&lt;BR /&gt;Fortunately you put the full path in when you start and stop the database, so it works anyway.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Fri, 18 Jun 2004 06:15:46 GMT</pubDate>
    <dc:creator>Steve Lewis</dc:creator>
    <dc:date>2004-06-18T06:15:46Z</dc:date>
    <item>
      <title>Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308750#M185156</link>
      <description>Hi,&lt;BR /&gt; Is anybody having script that I can put on my&lt;BR /&gt; HP-UX server so that every time when i reboot &lt;BR /&gt; my INFORMIX server should get automatically &lt;BR /&gt; started and during shutdown it should down &lt;BR /&gt; the informix server properly.&lt;BR /&gt;&lt;BR /&gt; Thanks&lt;BR /&gt; Amit&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jun 2004 23:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308750#M185156</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-06-17T23:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308751#M185157</link>
      <description>You can create startup script using the template file in /sbin/init.d Following exmample illustrate the same:&lt;BR /&gt;&lt;BR /&gt;Objective: Add script which starts scoupx subsystem when the system transitions up to run-level 3 and stops the scopux subsystem whenever the transitions down to run-level 2.&lt;BR /&gt;&lt;BR /&gt;1. cd /sbin/init.d --&amp;gt; cp template scope_collect --&amp;gt; vi scope_collect&lt;BR /&gt;2. Edit start_msg and stop_msg statement.&lt;BR /&gt;3. Edit start statement: Change CONTROL_VARIABLE to SCOPE_COLLECT --&amp;gt; add command /opt/perf/bin/scope.start --&amp;gt; add command set_return.&lt;BR /&gt;4. Edit stop statement: Change CONTROL_VARIABLE to SCOPE_COLLECT --&amp;gt; add command /opt/perf/bin/scope.stop --&amp;gt; add command set_return.&lt;BR /&gt;5. vi /etc/rc.config.d/scopt_collect --&amp;gt; add single line, SCOPE_COLLECT=1.&lt;BR /&gt;6. ln -s /sbin/init.d/scope_collect /sbin/rc3.d/S900scope_collect&lt;BR /&gt;7. ln -s /sbin/init.d/scope_collect /sbin/rc2.d/K100scope_collect&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Fri, 18 Jun 2004 02:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308751#M185157</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-06-18T02:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308752#M185158</link>
      <description>Amit,&lt;BR /&gt;&lt;BR /&gt;Here's what we use (/sbin/init.d/informix):&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;# @(#) $Revision: 72.5 $&lt;BR /&gt;#&lt;BR /&gt;# NOTE:    This script is not configurable!  Any changes made to this&lt;BR /&gt;#          scipt will be overwritten when you upgrade to the next&lt;BR /&gt;#          release of HP-UX.&lt;BR /&gt;#&lt;BR /&gt;# WARNING: Changing this script in any way may lead to a system that&lt;BR /&gt;#          is unbootable.  Do not modify this script.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Informix start up&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin:$INFORMIXDIR:$INFORMIXDIR/bin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;rval=0&lt;BR /&gt;set_return() {&lt;BR /&gt;        x=$?&lt;BR /&gt;        if [ $x -ne 0 ]; then&lt;BR /&gt;                echo "EXIT CODE: $x"&lt;BR /&gt;                rval=1&lt;BR /&gt;        fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;start_msg)&lt;BR /&gt;        echo "Start Informix daemon"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;stop_msg)&lt;BR /&gt;        echo "Stop Informix daemon"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;'start')&lt;BR /&gt;        if [ -f /etc/rc.config.d/informix ] ; then&lt;BR /&gt;                . /etc/rc.config.d/informix&lt;BR /&gt;        else&lt;BR /&gt;                echo "ERROR: /etc/rc.config.d/informix defaults file MISSING"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;        if [ "$INFORMIX" -eq 1 -a -x /opt/informix/bin/oninit ]; then&lt;BR /&gt;                /opt/informix/bin/oninit &amp;amp;&amp;amp; echo informix started&lt;BR /&gt;                set_return&lt;BR /&gt;        else&lt;BR /&gt;                rval=2&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;'stop')&lt;BR /&gt;        #&lt;BR /&gt;        # Determine PID of process(es) to stop&lt;BR /&gt;        #&lt;BR /&gt;        if [ -x /opt/informix/bin/onmode ]; then&lt;BR /&gt;                /opt/informix/bin/onmode -kyu &amp;amp;&amp;amp; echo informix stopped&lt;BR /&gt;        fi&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;*)&lt;BR /&gt;        echo "usage: $0 {start|stop}"&lt;BR /&gt;        rval=1&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The spacing will get truncated so I'll attach it as well.  Along with that, you need to set any variables in /etc/rc.config.d/informix:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;# @(#) $Revision: 72.3 $&lt;BR /&gt;#&lt;BR /&gt;# INFORMIX:     Set to 1 to start Informix daemon.&lt;BR /&gt;#&lt;BR /&gt;INFORMIX=1&lt;BR /&gt;# KAIOON=1 6/30/97 experiment&lt;BR /&gt;export INFORMIXDIR=/opt/informix&lt;BR /&gt;export INFORMIXSERVER=m_tcp_1&lt;BR /&gt;export ONCONFIG=onconfig.DATABASE&lt;BR /&gt;#&lt;BR /&gt;# Look in "/sbin/init.d/informix" for INFORMIXSERVER change for "onprobe"&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Finally, you need to establish the startup and shutdown links as follows:&lt;BR /&gt;&lt;BR /&gt;lrwxrwxr-x   1 root       sys             18 Oct 18  2002 /sbin/rc2.d/K100informix -&amp;gt; ../init.d/informix&lt;BR /&gt;lrwxrwxr-x   1 root       sys             18 Oct 18  2002 /sbin/rc3.d/S998informix -&amp;gt; ../init.d/informix&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That's all there is to it!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 18 Jun 2004 05:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308752#M185158</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-06-18T05:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308753#M185159</link>
      <description>Hi,&lt;BR /&gt;  I have written a script to startup and &lt;BR /&gt;  shutdown the server, but dont know where&lt;BR /&gt;  to put this script and by which name&lt;BR /&gt;&lt;BR /&gt;  Thanks,&lt;BR /&gt;  Amit</description>
      <pubDate>Fri, 18 Jun 2004 05:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308753#M185159</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-06-18T05:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308754#M185160</link>
      <description>Amit,&lt;BR /&gt;&lt;BR /&gt;The script goes in /sbin/init.d and can be called anything you like.  The key is the links that I showed you earlier.  As rc progresses up through the run levels on startup, all the scripts in the rc directory for that run level get parsed with an argument of "start".  In this case, we want to startup Informix after everything else is up so we put the startup link in rc3.d as S998informix.  Once again, you could call it anything you like but the sequence number governs the order in which it gets parsed.  The same idea holds true on shutdown.  We want Informix shut down first so we put the link in rc2.d with a low sequence number.&lt;BR /&gt;&lt;BR /&gt;That's it!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 16 Sep 2024 09:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308754#M185160</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2024-09-16T09:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308755#M185161</link>
      <description>Pete,&lt;BR /&gt;&lt;BR /&gt;looking at your script, it mentions $INFORMIXDIR in the PATH at the top before you have sourced the informix script in rc.config.d.&lt;BR /&gt;&lt;BR /&gt;Fortunately you put the full path in when you start and stop the database, so it works anyway.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 18 Jun 2004 06:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308755#M185161</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2004-06-18T06:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Informix Startup Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308756#M185162</link>
      <description>Good catch, Steve, I never noticed that.  My DBA follows the Informix example of using variables all the time - I'm a full path guy - I like things spelled out.&lt;BR /&gt;&lt;BR /&gt;I should also mention to Amit that not only the sequence number of the link is important - they have to begin with K for the shutdown and S for the startup.  When rc switches run levels on the way up, it parses all the S* scripts in order and on the way down it parses all the K* scripts in order.  I forgot to point that out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 18 Jun 2004 06:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-startup-script/m-p/3308756#M185162</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-06-18T06:21:31Z</dc:date>
    </item>
  </channel>
</rss>

