[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference forty2::x500

Title:X.500 Directory Services
Notice:Sprt: FORTY2::X500_SUPPORT, Kits: 216.*, try dir/titl=OFFICIAL
Moderator:FORTY2::PULLEN
Created:Tue Jan 30 1990
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1016
Total number of notes:4299

1007.0. "DSA shutdown" by KERNEL::16.182.96.116::houldingj () Tue May 20 1997 21:27

Hi

Customer has had problems recently with a corrupt DIT (I think you probably 
remember this one Andrew!?) and is now nervous about retaining the 
integrity of the DSA across reboots.

He is trying to build a clean close of the DSA (using DELETE DSA TO 
SNAPSHOT) whenever they close the system down. The problem is I cannot find 
anywhere on my UNIX system where he would do this.

It appears that shutdown runs the scripts in /sbin/rc0.d - there is one in 
here called osi_applications. In here there is a call for shutdown which 
calls /usr/sbin/osi_applshutdown or /sbin/osi_applshutdown

On our system (and the customers) there is only the first of these. Looking 
at this script it appears to kill any application daemons.

Where would the customer put any commands he needs to execute during 
shutdown?

Thanks

Jill
T.RTitleUserPersonal
Name
DateLines
1007.1edit osi_applshutdownBIKINI::DITEJohn Dite@RTO DTN 865-4065Wed May 28 1997 14:0429
Jill

	we basically amended the /sbin/init.d/osi_applications file and
introduced the following entries.


        ;;
    STOP)
        if [ -s /usr/sbin/osi_applshutdown ]
        then
# Digital , August 1995
            ncl < /var/mta/scripts/stop_mta.ncl
            ncl < /var/dxd/scripts/stop_dsa.ncl
            sleep 5
# Digital, August 1995
...

BTW. We are running an ASE configuration not that that should make any 
difference.

As you will have gathered /usr/sbin/osi_applshutdown only seems to shutdown
the APPL_DAEMONS="ftam_listener ftamd vt_listener ologind". So that 
I assume that the disabling and deleting of OSAK and the inherent deletion
of the OSAK mta/dsa ports leads to the termination of the mta and dsa 
processes.

Hope this helps.

John
1007.216.11.160.133::FORTY2::PALKAAndrew Palka Altavista DirectoryWed May 28 1997 14:076
I suspect that the dsa is only terminated when the shutdown starts
killing processes. This will result in an abrupt termination of the
dsa. This should be perfectly safe, but there is a bug in V3 before
ECO 4 which can cause corruption in some cases.

Andrew