Difference between revisions of "2.0/Modules/os shutdown"

From AnopeWiki
Jump to: navigation, search
(Created page with "{{Language|2.0/Modules/os_shutdown}} {{Syntax|os_shutdown|OperServ|Anope}} == <div class="moduleheader">Description</div> == ;SHUTDOWN :Causes Services to save all databases ...")
 
(No difference)

Latest revision as of 14:56, 9 May 2014

Language

English

Service OperServ
Module os_shutdown
Author Anope

Description

SHUTDOWN 
Causes Services to save all databases and then shut down.
RESTART 
Causes Services to save all databases and then restart (i.e. exit and immediately re-run the executable).
QUIT 
Causes Services to do an immediate shutdown; databases are not saved. This command should not be used unless damage to the in-memory copies of the databases is feared and they should not be saved.
  • NOTE: Access to these commands require the permission operserv/shutdown to be present in your opertype'.

Commands

shutdown
restart
quit

Examples

/msg OperServ SHUTDOWN

/msg OperServ RESTART


Default Configuration

/*
 * os_shutdown
 *
 * Provides the commands operserv/quit, operserv/restart, and operserv/shutdown.
 *
 * Used to quit, restart, or shutdown services.
 */
module { name = "os_shutdown" }
command { service = "OperServ"; name = "QUIT"; command = "operserv/quit"; permission = "operserv/quit"; }
command { service = "OperServ"; name = "RESTART"; command = "operserv/restart"; permission = "operserv/restart"; }
command { service = "OperServ"; name = "SHUTDOWN"; command = "operserv/shutdown"; permission = "operserv/shutdown"; }