mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 02:51:25 +00:00
27 lines
706 B
Text
27 lines
706 B
Text
|
description "sharelatex-web"
|
||
|
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
|
||
|
SERVICE=spelling
|
||
|
USER=sharelatex
|
||
|
GROUP=sharelatex
|
||
|
# You may need to replace this with an absolute
|
||
|
# path to Node.js if it's not in your system PATH.
|
||
|
NODE=node
|
||
|
SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
|
||
|
|
||
|
echo $$ > /var/run/sharelatex-$SERVICE.pid
|
||
|
chdir /var/www/sharelatex/$SERVICE
|
||
|
exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1
|
||
|
end script
|