Re: startup/stop informix
Posted in 1997
Topics: Installation, Setup & Upgrades, Server Administration
Thuc Nguyen wrote:
>
> I installed Online 7.22 on HP 10.20.
> I placed a startup/stop informix script in /sbin/init.d
> and then rebooted it. It was in unbootable status. We booted it a few
> times but it was hung up. I removed a script from /sbin/init.d, and
> /etc/rc.config.d and also deleted a file from /sbin/rc.1d and /sbin/rc.2d
>
> What I did is
>
> 1. Login as root
> 2. cd /sbin/init.d
> 3. cp template informix
> 4. edit informix script
An example of the script would be useful.
> 5. cd /etc/rc.config.d
> 6. create "informix" file
>
> 7. cd /sbin/rc1.d
> 8. ln -s /sbin/init.d/informix K100informix
> 9. cd /sbin/rc2.d
> 10. ln -s /sbin/init.d/informix S900informix
>
> Am I missing something else.
Probably. :-)
> The #6 - I copied informix script from /sbin/init.d? or should I leave
> informix as empty script? What does "create "informix" file" mean as HP
> vendor informed me?
Uh oh.
> I would like a copy of your startup/stop informix script emailed to me
> directly if you run Online 7.22 on HP 10.20
These scripts may not all take the same parameters, but look at some
existing ones and modify your Informix script to look something like
the following:
----------------------------------------------------------------------
INFORMIXDIR=/usr/informix
PATH=$PATH:$INFORMIXDIR/bin
INFORMIXSERVER=servername
export INFORMIXDIR PATH INFORMIXSERVER
case "$1" in
start)
echo "Starting Informix OnLine ..... "
oninit
;;
stop)
echo "Stopping Informix OnLine ..... "
onmode -ky
;;
*)
echo "Usage `basename $0` [start|stop]"
;;esac
----------------------------------------------------------------------
Hope that helps,
--
Mark.
+------------------------------------------------------------------+
|Mark D. Stock - The West Solutions Group http://www.west.co.za |
| The Informix FAQ is at http://www.iiug.org |
|mailto:marks@west.co.za +-----------------------------------------+
|Tel: +27 11 803 2151 |If it doesn't work, force it! |
|Fax: +27 11 803 2189 |If it breaks, it needed replacing anyway!|
|Cell: +27 83 250 2325 |Well, that's how I code anyway! |
+------------------------+-----------------------------------------+