doshutdownhooks man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

DOSHUTDOWNHOOKS(9)	     OpenBSD Kernel Manual	    DOSHUTDOWNHOOKS(9)

NAME
     doshutdownhooks - run all shutdown hooks

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

     void
     doshutdownhooks(void);

DESCRIPTION
     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
     boot(9), dohooks(9), domountroothooks(9), dostartuphooks(9),
     shutdownhook_establish(9)

OpenBSD 4.9			 May 31, 2007			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net