*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> doshutdownhooks (9)              
Title
Content
Arch
Section
 

DOSHUTDOWNHOOKS(9)

Contents


NAME    [Toc]    [Back]

     doshutdownhooks - run all shutdown hooks

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <sys/systm.h>

     void
     doshutdownhooks(void);

DESCRIPTION    [Toc]    [Back]

     The doshutdownhooks() function invokes  all  shutdown  hooks
established using
  the shutdownhook_establish(9) function.  Shutdown hooks
are called in
     reverse order, i.e., the shutdown hook established last will
be called
     first.

     This  function is called from boot(9) with interrupts turned
off.  It is
     called immediately before the system is halted or  rebooted,
after file
     systems have been unmounted, after the clock has been updated, and after
     a system dump has been done (if necessary).

     Shutdown hooks are, like startup hooks, implemented via  the
more general
     dohooks(9) API.

SEE ALSO    [Toc]    [Back]

      
      
     boot(9),  dohooks(9), dostartuphooks(9), shutdownhook_establish(9)

OpenBSD     3.6                        November     13,      1995
[ Back ]
 Similar pages
Name OS Title
SSL_CTX_set_quiet_shutdown Tru64 Manipulate shutdown behavior
shutdownhook_disestablish NetBSD add or remove a shutdown hook
shutdownhook_establish NetBSD add or remove a shutdown hook
SSL_CTX_set_quiet_shutdown OpenBSD manipulate shutdown behaviour
SSL_get_quiet_shutdown OpenBSD manipulate shutdown behaviour
SSL_CTX_set_quiet_shutdown NetBSD manipulate shutdown behaviour
SSL_set_quiet_shutdown OpenBSD manipulate shutdown behaviour
SSL_CTX_get_quiet_shutdown OpenBSD manipulate shutdown behaviour
DEVICE_SHUTDOWN FreeBSD called during system shutdown
shutdownhook_disestablish OpenBSD add or remove a shutdown hook
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service