2024.8.23
Loading...
Searching...
No Matches
ActionManualRestart Class Reference

Public Member Functions

 __construct ($args)
 

Detailed Description

Class ActionManualRestart

This class handles the manual restart of services in the Bearsampp application. It stops all running services, kills all related processes, and sets the application to restart.

Definition at line 17 of file class.action.manualRestart.php.

Constructor & Destructor Documentation

◆ __construct()

ActionManualRestart::__construct ( $args)

ActionManualRestart constructor.

Parameters
array$argsArguments passed to the constructor.

This constructor initializes the manual restart process by performing the following steps:

  1. Starts the loading process.
  2. Deletes all services managed by Bearsampp.
  3. Kills all related processes.
  4. Sets the application to restart.
  5. Stops the loading process.

Definition at line 31 of file class.action.manualRestart.php.

32 {
34
35 // Start the loading process
37
38 // Delete all services managed by Bearsampp
39 foreach ($bearsamppBins->getServices() as $sName => $service) {
40 $service->delete();
41 }
42
43 // Kill all related processes
45
46 // Set the application to restart
48
49 // Stop the loading process
51 }
global $bearsamppBins
global $bearsamppCore
static stopLoading()
static startLoading()
static killBins($refreshProcs=false)

References $bearsamppBins, $bearsamppCore, Win32Ps\killBins(), ActionExec\RESTART, Util\startLoading(), and Util\stopLoading().


The documentation for this class was generated from the following file: