mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Create more documentation (#7627)
* Documentation, format class, no modification.
This commit is contained in:
@@ -37,6 +37,16 @@
|
||||
//echo "pid_file: ".$pid_file."\n";
|
||||
|
||||
//function to check if the process exists
|
||||
/**
|
||||
* Checks if a process exists.
|
||||
*
|
||||
* This function checks if a process with the specified PID file exists, and returns true if it does,
|
||||
* or false otherwise. If no PID file is provided, the function defaults to returning false.
|
||||
*
|
||||
* @param string|false $file The path to the PID file of the process to check for, or false to default to not checking any process.
|
||||
*
|
||||
* @return bool True if a process with the specified PID exists, false otherwise.
|
||||
*/
|
||||
function process_exists($file = false) {
|
||||
|
||||
//set the default exists to false
|
||||
|
||||
Reference in New Issue
Block a user