Location: PHPKode > projects > GForge Community Edition > gforge-ce-571-src/cron15.php
<?php

// Check locks
$lock_file = '/tmp/gforge_cron15.lock';
$fp = fopen($lock_file, "w+");
if (!$fp) {
	return;
}

if (!flock($fp, LOCK_EX | LOCK_NB)) {
	// Couldn't acquire exclusive lock, means another process is running
	return;
}

$base_str='cd /opt/gforge5 && /usr/bin/php -d include_path=".:/opt/gforge5:/opt/gforge5/lib:/opt/gforge5/plugins:/opt/gforge5/lib/external" /opt/gforge5/bin/gforge cronjob  /opt/gforge5';

#Project Hosting Cronjob
#`$base_str/plugins/scm/cronjobs/scm_checkout_www.php`;
`$base_str/plugins/scmcvs/cronjobs/create_users_groups.php`;
`$base_str/plugins/scmcvs/cronjobs/create_cvs.php`;
`$base_str/plugins/mailman/cronjobs/create_lists.php`;
`$base_str/plugins/scmsvn/cronjobs/create_svn.php`;
`$base_str/plugins/scmsvn/cronjobs/create_dav_svn_auth.php`;
`$base_str/plugins/scmcvs/cronjobs/ssh_create.php`;
`$base_str/cronjobs/mail_aliases.php`;
`$base_str/plugins/scmgit/cronjobs/create_git.php`;
#FTP Cronjob
#`$base_str/cronjobs/ftp_create_directories.php`;

flock($fp, LOCK_UN);
fclose($fp);

?>
Return current item: GForge Community Edition