summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-02-20 13:10:16 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-02-24 15:41:20 +0100
commit5b506ab51865db3c6ea363462fc31c50d10647a3 (patch)
tree5bb3fc2fded739b91058b50eccafad4cce7ad59e /config
parentd43d34c93f86ffa968158e57cb03728843ec8e93 (diff)
downloadnextcloud-server-5b506ab51865db3c6ea363462fc31c50d10647a3.tar.gz
nextcloud-server-5b506ab51865db3c6ea363462fc31c50d10647a3.zip
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
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 061f368b20e..10b079caa8a 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -55,7 +55,7 @@ $CONFIG = array(
*
* @deprecated This salt is deprecated and only used for legacy-compatibility, developers
* should *NOT* use this value for anything nowadays.
- *
+ *
*'passwordsalt' => 'd3c944a9af095aa08f',
*/
'passwordsalt' => '',
@@ -508,6 +508,16 @@ $CONFIG = array(
'cron_log' => true,
/**
+ * Location of the lock file for cron executions can be specified here.
+ * Default is within the tmp directory. The file is named in the following way
+ * owncloud-server-$INSTANCEID-cron.lock
+ * where $INSTANCEID is the string specified in the instanceid field.
+ * Because the cron lock file is accessed in regular intervals, it may prevent enabled disk drives from spinning down.
+ * A different location for this file can solve such issues.
+ */
+'cron.lockfile.location' => '',
+
+/**
* Enables log rotation and limits the total size of logfiles. The default is 0,
* or no rotation. Specify a size in bytes, for example 104857600 (100 megabytes
* = 100 * 1024 * 1024 bytes). A new logfile is created with a new name when the
@@ -669,7 +679,7 @@ $CONFIG = array(
* - OC\Preview\StarOffice
* - OC\Preview\SVG
* - OC\Preview\TIFF
- *
+ *
* .. note:: Troubleshooting steps for the MS Word previews are available
* at the :doc:`collaborative_documents_configuration` section
* of the Administrators Manual.