diff --git a/_sakura/changelog.json b/_sakura/changelog.json index 8cd2630..75cd474 100644 --- a/_sakura/changelog.json +++ b/_sakura/changelog.json @@ -2715,6 +2715,11 @@ "type": "ADD", "change": "Added Windows no cron task method.", "user": "Flashwave" + }, + { + "type": "ADD", + "change": "Added Linux no cron task method.", + "user": "Flashwave" } ] diff --git a/_sakura/sakura.php b/_sakura/sakura.php index 2f63e03..41851b4 100644 --- a/_sakura/sakura.php +++ b/_sakura/sakura.php @@ -78,7 +78,7 @@ if(Configuration::getConfig('no_cron_service')) { } else { - shell_exec(PHP_BINDIR .'/php '. ROOT .'_sakura/cron.php > /dev/null 2>/dev/null &'); + pclose(popen(PHP_BINDIR .'/php '. ROOT .'_sakura/cron.php > /dev/null 2>/dev/null &', 'r')); }