NextDom\Helpers\SystemHelper
Class SystemHelper
Synopsis
class SystemHelper
{
- // methods
- public static int vsystem()
- public static mixed getCommand()
- public static string getDistrib()
- public static array loadCommand()
- public static void killProcessesWhichUsingFile()
- public static string getCmdSudo()
- public static void killProcessesWhichUsingPort()
- public static array ps()
- public static mixed kill()
- public static string getWWWGid()
- public static string getWWWUid()
- public static string getProcessorCoresCount()
- public static string getHttpConnectionsCount()
- public static string getProcessCount()
- public static string getUptime()
- public static array getMemInfo()
- public static bool rrmdir()
- public static void consistency()
- public static string php()
- public static string stopService()
- public static string startService()
- public static void getSystemInformations()
- public static void cleanFileSystemRight()
- public static void getArch()
- public static void getInstalledPackages()
- public static void checkAndInstall()
- public static void launchScriptPackage()
- public static void installPackage()
- public static void checkInstallationLog()
Members
private
- $commands — array
- $distrib — string
Methods
public
- checkAndInstall()
- checkInstallationLog()
- cleanFileSystemRight()
- consistency()
- getArch()
- getCmdSudo() — Get sudo command
- getCommand() — Get command key
- getDistrib() — Get distribution name
- getHttpConnectionsCount() — Get HTTP connections count
- getInstalledPackages()
- getMemInfo()
- getProcessCount() — Get process count
- getProcessorCoresCount() — Get proccessor cores count
- getSystemInformations()
- getUptime() — Get uptime
- getWWWGid() — Get apache group id
- getWWWUid() — Get apache user id name
- installPackage()
- kill() — Kill process
- killProcessesWhichUsingFile() — Kill all process which using file
- killProcessesWhichUsingPort() — Kill all process which using port
- launchScriptPackage()
- loadCommand() — Load system from system_cmd.json if file exists.
- php() — Execute PHP command
- ps() — Find a process
- rrmdir() — Recursively delete given path
- startService() — Start a service
- stopService() — Stop a service
- vsystem()