Commit Graph

42 Commits

Author SHA1 Message Date
Bernhard Posselt 5b506ab518 use flock instead of just checking if there is a file to prevent deadlocks when the process crashed or the unlink wasnt done
move cron.lock into top directory to prevent external storage issues

use tmp directory lock file

use new config interface

incorporate #13770

add dots
2015-02-24 15:41:20 +01:00
Jenkins for ownCloud 6a1a4880f0 Updating license headers 2015-02-23 12:13:59 +01:00
Robin Appelman 0b96297783 Use the TempManager to handle temporary files 2014-10-24 12:18:49 +02:00
Thomas Müller d9907b6fa3 move some deprecated usage of OC_Config and OC_AppConfig to \OC::server 2014-10-20 14:44:44 +02:00
Morris Jobke b7445582dc add proper End of Line character 2014-08-31 14:21:46 +02:00
Jörn Friedrich Dreyer f551917a3c kill OC::$session
maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession

restore order os OC::$session and OC::$CLI

remove unneded initialization of dummy session

write back session when $useCustomSession is true

log warning when deprecated app is used
2014-08-29 10:22:21 +02:00
Oliver Kohl D.Sc. 2ff369e7f3 Update cron.php 2014-07-24 13:54:55 +02:00
Oliver Kohl D.Sc. 97e61f438f CRON call ends in null exception
[error] 4461#0: *186285 FastCGI sent in stderr: "PHP message
: PHP Fatal error:  Call to a member function execute() on null in /var/www/ownc
loud/cron.php on line 125" while reading response header from upstream, client:
217.13.183.252, server: cloud.mycloud.com, request: "GET /cron.php HTTP/1.1", upstre
am: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cloud.mycloud.com", referrer: "
https://cloud.mycloud.com/"
2014-07-24 13:46:40 +02:00
Vincent Petry 547927bdd2 Prevent cron.php to trigger apps updating 2014-07-23 21:29:24 +02:00
Steffen Lindner 22394fa4f5 Fix indent 2014-07-02 12:00:35 +02:00
Steffen Lindner 9433b94fd5 initialize a dummy memory session - fixes https://github.com/owncloud/activity/issues/78 2014-07-02 11:52:45 +02:00
Thomas Müller 5fa8f7cf12 Merge pull request #7107 from owncloud/load-apps-proper-master
Load apps proper master
2014-03-28 10:33:55 +01:00
kondou dda7129a24 Merge branch 'master' of https://github.com/owncloud/core into last_cron_log 2014-03-21 20:23:31 +01:00
Thomas Müller 6ff96b34ad Merge branch 'master' into load-apps-proper-master
Conflicts:
	apps/files/ajax/rawlist.php
	cron.php
	ocs/v1.php
2014-03-21 14:05:08 +01:00
kondou 547b563464 Log last cron execution
Fixes #2012
2014-03-12 15:20:51 +01:00
Thomas Müller 58c216d0e8 close the session on all file operations 2014-03-10 14:39:27 +01:00
Thomas Müller e139f7c863 load all apps to get all cron jobs executed 2014-02-18 17:17:08 +01:00
Robin Appelman a6399f9cef Add the background job list to the public server container 2014-02-11 14:00:24 +01:00
Robin Appelman 35bb6f7e3a Catch exceptions from background jobs and log them 2013-12-02 13:41:47 +01:00
Boris Rybalkin 00c998c5bb fixing typo
Typo in comment "feature" => "future"
2013-09-23 21:08:58 -04:00
kondou 9e8a6b704d Add _many_ newlines at the end of files 2013-08-18 11:06:59 +02:00
Jörn Friedrich Dreyer 8dc6bdd96b clean up usage of DatabaseSetupException and catch Exceptions in entrypoints 2013-06-10 13:45:19 +02:00
Robin Appelman 251527c6e6 merge master into backgroundjob 2013-06-02 20:12:44 +02:00
Michael Gapczynski 9b622bdeed RUNTIME_NOSETUPFS no longer exists, using tearDownFS() in public links instead 2013-05-22 15:02:11 -04:00
Robin Appelman 7948341a86 Rework background job system 2013-04-20 23:27:46 +02:00
Robin Appelman d0a5fe1f4a code style 2013-04-20 21:26:47 +02:00
kondou 6ee2b4c740 No personal prefixes for variables. 2013-04-16 19:18:15 +02:00
Robin Appelman d3858e9f96 Close sessions when doing background jobs 2013-03-17 00:48:10 +01:00
Valerio Ponte 8e190a5a97 Moved X-Sendfile headers into OC_Files::get
now should work with temp files too
2012-11-14 20:10:20 +01:00
Felix Moeller f8d1d7787e Checkstyle fixes for SpaceBeforeOpenBrace 2012-11-04 10:46:32 +01:00
Jakob Sack 22dcd3b6a6 fix bug 2012-10-27 10:23:36 +02:00
Jakob Sack f5f204de56 improve cron.php, add locking for cli cron.php 2012-10-27 10:08:56 +02:00
Thomas Mueller 3829460ab8 adding space between) and { 2012-09-07 15:22:01 +02:00
Thomas Müller a1bd1ae484 Update cron.php
respect coding style
2012-09-04 12:08:58 +03:00
Jakob Sack bf7afa28d5 Backgroundjobs: cron.php now checks for mode=="none" 2012-08-11 17:18:49 +02:00
Jakob Sack 0de81f9dad Backgroundjobs: don't execute cron.php if owncloud has not been installed 2012-08-10 14:03:26 +02:00
Jakob Sack 831ec985db Backgroundjobs: fix stupid bug 2012-08-09 23:52:48 +02:00
Jakob Sack 7b3c35107d Error handling works better now 2012-08-09 23:49:20 +02:00
Jakob Sack 66511469e0 Backgroundjobs: Improve error handling in cron.php 2012-08-09 22:22:43 +02:00
Jakob Sack 889f0a1c6d rename appconfig keys for backgroundjobs 2012-08-09 10:40:39 +02:00
Jakob Sack 13a0818fec Be more precise regarding backgroundjobs mode 2012-08-09 01:02:05 +02:00
Jakob Sack 14cbb8724c Add "cron.php" for background jobs. It is named cron.php because more people will recognize the purpose of the file then. 2012-08-09 00:48:36 +02:00