Update SeedDMS execution time limit + cronjob

This commit is contained in:
Disassembler 2019-05-17 18:08:37 +02:00
parent bc587252b4
commit 79442aa60e
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
4 changed files with 16 additions and 7 deletions

View 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

View File

@ -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

View File

@ -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>

View 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