Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RC.SHUTDOWN(8)		FreeBSD	System Manager's Manual		RC.SHUTDOWN(8)

NAME
     rc.shutdown -- command script run at system shutdown

DESCRIPTION
     When the system is	shut down using	the reboot(8) or halt(8) commands, or
     when init(8) is signalled to do so, or when a keyboard-requested halt is
     issued (if	the architecture supports it), rc(8) is	invoked	with the argu-
     ment "shutdown".  This document details the actions taken by rc(8)	in
     such an instance.

     Firstly it	saves random data for reseeding	the kernel random number gen-
     erator during the next boot.  It then stops any daemons defined in	the
     pkg_scripts variable in rc.conf.local(8), by passing them the stop	argu-
     ment.

     rc(8) then	runs rc.shutdown.  The administrator should place in this file
     any commands they wish to have executed during shutdown.

     Finally, all carp(4) interfaces are brought down and then the system
     shuts down.

     If	init(8)	is exiting single-user mode it will also run the first part of
     shutdown (saving random data), though not the latter.

FILES
     /etc/rc.shutdown  Command script run at system shutdown.

     /etc/examples/rc.shutdown
		       Example script.

SEE ALSO
     init(8), rc(8), rc.conf(8), reboot(8)

FreeBSD	13.0			 May 16, 2020			  FreeBSD 13.0

NAME | DESCRIPTION | FILES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=rc.shutdown&sektion=8&manpath=OpenBSD+6.9>

home | help