Re: [Q] How can I add dbshut in shutdown process under AIX?

From: Loren Cain <loren_at_usair.com>
Date: 1996/12/09
Message-ID: <32AC7B77.ABD_at_usair.com>#1/1


Chris Thomas wrote:
>
> In article <32AC26AE.41C6_at_genacc-us.com>, Paul Reimold
> <preimold_at_genacc-us.com> wrote:
>
> > Huy Vu wrote:
> > >
> > > I try to find out where can I add the script 'dbshut' to shutdown the
> > > oracle databases automatically every time the system shutdown for our
> > > server AIX 4.1.4. I'm newbie on AIX platform.
> >
> > (carefully) Edit the /usr/sbin/shutdown script (after making a backup
> > copy.) Unfortunately in AIX, there are no clearly defined rc scripts for
> > shutdowns and changes in various init levels as there are are in System
> > V, etc.
>
> /etc/netware.clean is a better place to put local modifications to
> shutdown. Shutdown may get replaced by IBM maintenenace, causing your
> changes to disappear..
>

Why not put the local modifications in /etc/rc.shutdown? If this script exists, it is executed at the beginning of the shutdown process and if it fails with a non-zero return code, the shutdown process stops. See man shutdown.

Loren Cain
loren_at_usair.com Received on Mon Dec 09 1996 - 00:00:00 CET

Original text of this message