Linux on 390 Port <[email protected]> wrote on 07/05/2007 04:07:16
PM:

> With a holiday, it is a slow time of the month.
> Time to learn....
>
> I'm reading the "Suse Linux boot concept" chapter in the PDF that
> comes with SUSE (the PDF is called MANUAL), but it is the
> Installation and Administration manual.
>
> Playing around with the following, modified from "skeleton":
>
> #! /bin/sh
> # Copyright (c) 1995-2004 SUSE Linux AG, Nuernberg, Germany.
> # All rights reserved.
> #
> # Init skeleton modified for Oracle startup and shutdown
> # by Tom Duerbusch
> # THD Consulting
> # July 5 2007
> #
> ### BEGIN INIT INFO
> # Provides:          ORACLEDB
> # Required-Start:    $network
> # Default-Start:     3 5
> # Default-Stop:      0 1 2 6
> # Short-Description: Oracle startup and shutdown script
> # Description:       Oracle startup and shutdown script
> #       lsnrctl start (to start IP service
> #       sqlplus '/as sysdba'
> #       startup (mount and startup Oracle server
> #       quit
> #       emctl start dbconsole (starts the OEM monitor
> ### END INIT INFO
> ** Joe's Own Editor v2.9.8-pre1 ** Copyright (C) 2001 **
> ...
>
> Anyway, it starts/stops in the wrong place.  i.e.
>
> linux34:/etc/init.d # ls rc3.d
> .               K10cups          K16syslog    S08resmgr S13postfix
> ..              K10fbset         K17network   S08slpd          S13splash
> K06dbora        K10ldap          K20coldplug  S08smbfs         S14cron
> K06init.cssd    K10sshd          K21hotplug   S08splash_early  S14hwscan
> K07splash_late  K12nfs           K21random    S10nfs           S14nscd
> K08cron         K12nfsboot       S01hotplug   S10nfsboot       S14xinetd
> K08hwscan       K14portmap       S01random    S12alsasound
S15splash_late
> K08nscd         K14resmgr        S02coldplug  S12cups          S16dbora
> K08xinetd       K14slpd          S05network   S12fbset S16init.cssd
> K09postfix      K14smbfs         S06syslog    S12ldap
> K09splash       K14splash_early  S07oracle    S12sshd
> K10alsasound    K15oracle        S08portmap   S13kbd
> linux34:/etc/init.d #
>
> It starts at a "S07" and ends with a "K15".
>
> Starting it up as the last thing started and the first thing
> shutdown, would be good.
>
> The chapter on this, does a good job of explaining the startup
> sequence, but not how to be last.  Apparently, there are only
> certain parms that can be put in the "required start" and it is
> doing what I tell it, that is start after $network.  I could put a
> delay in the startup process to wait everything out.  The shutdown
> process kills me also.  I've lost my NSF server long before I start
> the shutdown or Oracle.
>
> Remember, I'm playing around.  I'm using an old Oracle image to test
> things out.  The point isn't to startup/shutdown Oracle, in a much
> as it is to understand how to get processes started/stopped in the
> proper order.
>
> Thanks
>
> Tom Duerbusch
> THD Consulting
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390

Tom,

The numbers are in the symlink names for ordering.  If you want it startup
last, rename the symlink to be S17oracle.  If you want it stop first,
rename the symlink to be K01oracle.  The only catch is that you have to
understand the dependencies :)

Thanks,

Ray Higgs
System z FCP Development
Bld. 706, B24
2455 South Road
Poughkeepsie, NY 12601
(845) 435-8666,  T/L 295-8666
[EMAIL PROTECTED]

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to