mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-30 20:41:58 +00:00
20 lines
486 B
Text
20 lines
486 B
Text
|
description "sharelatex-filestore"
|
||
|
author "ShareLaTeX <team@sharelatex.com>"
|
||
|
|
||
|
start on started mountall
|
||
|
stop on shutdown
|
||
|
|
||
|
respawn
|
||
|
|
||
|
limit nofile 8192 8192
|
||
|
|
||
|
pre-start script
|
||
|
mkdir -p /var/log/sharelatex
|
||
|
end script
|
||
|
|
||
|
script
|
||
|
echo $$ > /var/run/sharelatex-filestore.pid
|
||
|
chdir /var/www/sharelatex/filestore
|
||
|
exec sudo -u sharelatex -g sharelatex env SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee NODE_ENV=production node app.js >> /var/log/sharelatex/filestore.log 2>&1
|
||
|
end script
|