mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update cron_init.php
This commit is contained in:
parent
ad269bf974
commit
cf11a31ab2
@ -30,10 +30,7 @@ function cron_get_file_lock ()
|
|||||||
|
|
||||||
function cron_track_running ($mode)
|
function cron_track_running ($mode)
|
||||||
{
|
{
|
||||||
if (!defined('CRON_STARTMARK'))
|
@define('CRON_STARTMARK', TRIGGERS_DIR .'cron_started_at_'. date('Y-m-d_H-i-s') .'_by_pid_'. getmypid());
|
||||||
{
|
|
||||||
define('CRON_STARTMARK', TRIGGERS_DIR . 'cron_started_at_' . date('Y-m-d_H-i-s') . '_by_pid_' . getmypid());
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($mode == 'start')
|
if ($mode == 'start')
|
||||||
{
|
{
|
||||||
@ -42,14 +39,7 @@ function cron_track_running ($mode)
|
|||||||
}
|
}
|
||||||
elseif ($mode == 'end')
|
elseif ($mode == 'end')
|
||||||
{
|
{
|
||||||
if (file_exists(CRON_STARTMARK))
|
@unlink(CRON_STARTMARK);
|
||||||
{
|
|
||||||
unlink(CRON_STARTMARK);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
bb_simple_die("Invalid cron track mode: $mode");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user