Update SeedDMS execution time limit + cronjob
This commit is contained in:
parent
bc587252b4
commit
79442aa60e
5
seeddms/install/etc/periodic/15min/seeddms
Executable file
5
seeddms/install/etc/periodic/15min/seeddms
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e /run/openrc/started/seeddms ]; then
|
||||||
|
lxc-attach -u 8010 -g 8010 seeddms -- /srv/seeddms/seeddms/utils/seeddms-indexer >/dev/null
|
||||||
|
fi
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ -e /run/openrc/started/seeddms ]; then
|
|
||||||
# TODO: Check why this stopped working after 5.1.7
|
|
||||||
lxc-attach -u 8010 -g 8010 seeddms -- sh -c "cd /srv/seeddms/seeddms/utils; php indexer.php --config /srv/seeddms/conf/settings.xml" >/dev/null
|
|
||||||
fi
|
|
@ -21,7 +21,7 @@
|
|||||||
<authentication guestID="2" adminIP=""/>
|
<authentication guestID="2" adminIP=""/>
|
||||||
<edition enableAdminRevApp="false" versioningFileName="versioning_info.txt" workflowMode="advanced" enableVersionDeletion="true" enableVersionModification="true" enableDuplicateDocNames="true" enableOwnerRevApp="false" enableSelfRevApp="false" enableUpdateRevApp="false" presetExpirationDate="" overrideMimeType="false" removeFromDropFolder="false"/>
|
<edition enableAdminRevApp="false" versioningFileName="versioning_info.txt" workflowMode="advanced" enableVersionDeletion="true" enableVersionModification="true" enableDuplicateDocNames="true" enableOwnerRevApp="false" enableSelfRevApp="false" enableUpdateRevApp="false" presetExpirationDate="" overrideMimeType="false" removeFromDropFolder="false"/>
|
||||||
<notification enableNotificationAppRev="true" enableOwnerNotification="false" enableNotificationWorkflow="false"/>
|
<notification enableNotificationAppRev="true" enableOwnerNotification="false" enableNotificationWorkflow="false"/>
|
||||||
<server coreDir="" luceneClassDir="" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" extraPath="/srv/seeddms/pear" cmdTimeout="30" maxExecutionTime="900"/>
|
<server coreDir="" luceneClassDir="" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" extraPath="/srv/seeddms/pear" cmdTimeout="30" maxExecutionTime="7200"/>
|
||||||
<converters target="fulltext">
|
<converters target="fulltext">
|
||||||
<converter mimeType="application/pdf">pdftotext -enc UTF-8 -nopgbrk %s -</converter>
|
<converter mimeType="application/pdf">pdftotext -enc UTF-8 -nopgbrk %s -</converter>
|
||||||
<converter mimeType="text/rtf">unoconv -d document -f txt --stdout %s</converter>
|
<converter mimeType="text/rtf">unoconv -d document -f txt --stdout %s</converter>
|
||||||
|
10
seeddms/lxc/srv/seeddms/seeddms/utils/seeddms-indexer
Executable file
10
seeddms/lxc/srv/seeddms/seeddms/utils/seeddms-indexer
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd $(realpath $(dirname "${0}"))
|
||||||
|
(
|
||||||
|
if ! flock -n 3; then
|
||||||
|
echo "Indexer is still running"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
/usr/bin/php indexer.php --config /srv/seeddms/conf/settings.xml
|
||||||
|
) 3>indexer.lock
|
Loading…
Reference in New Issue
Block a user