ShareLaTeX是一个开源在线实时LaTeX编辑器。
示例代码:
description "sharelatex-web"author "ShareLaTeX <team@sharelatex.com>"start on (local-filesystems and net-device-up IFACE!=lo)stop on shutdownrespawnlimit nofile 8192 8192pre-start script mkdir -p /var/log/sharelatexend scriptscript SERVICE=chat 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 LATEX_PATH=/usr/local/texlive/2014/bin/x86_64-linux echo $$ > /var/run/sharelatex-$SERVICE.pid cd /var/www/sharelatex/$SERVICE exec sudo -u $USER -g $GROUP env SHARELATEX_CONFIG=$SHARELATEX_CONFIG NODE_ENV=production PATH=$PATH:$LATEX_PATH $NODE app.js >> /var/log/sharelatex/$SERVICE.log 2>&1end script
评论