src/FlamingBase/Controller/AbstractCliController.php
private function isrunning()
	{
		$pids = explode(PHP_EOL, `ps -e | awk '{print $1}'`);
		if (in_array($this->pid, $pids))
			return true;

		return false;
	}
private function isrunning()
	{
		$pids = explode(PHP_EOL, `ps -e | awk '{print $1}'`);
		if (in_array($this->pid, $pids))
			return true;

		return false;
	}
Check to see if a cronjob is already running

@return bool