Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.action.manualRestart.php
Go to the documentation of this file.
1<?php
2/*
3 *
4 * * Copyright (c) 2022-2025 Bearsampp
5 * * License: GNU General Public License version 3 or later; see LICENSE.txt
6 * * Website: https://bearsampp.com
7 * * Github: https://github.com/Bearsampp
8 *
9 */
10
19{
32 public function __construct($args)
33 {
35
36 Util::logTrace("Starting ActionManualRestart constructor");
37
38 // Start the loading process
39 Util::logTrace("Starting loading process");
41
42 // Delete all services managed by Bearsampp
43 Util::logTrace("Deleting all services managed by Bearsampp");
44 foreach ($bearsamppBins->getServices() as $sName => $service) {
45 Util::logTrace("Deleting service: " . $sName);
46 $service->delete();
47 }
48
49 // Kill all related processes
50 Util::logTrace("Killing all related processes");
52
53 // Set the application to restart
54 Util::logTrace("Setting application to restart");
56
57 // Stop the loading process
58 Util::logTrace("Stopping loading process");
60 }
61}
global $bearsamppBins
global $bearsamppCore
static logTrace($data, $file=null)
static startLoading()
static stopLoading()
static killBins($refreshProcs=false)