fa59ac7351
Node was running into stack size limit errors at the Atlanta Juno Summit. The default value for the stack size limit is 984 kBytes double this value to 1968 kBytes to hopefully make etherpad-lite more stable. Change-Id: Ib644e68689e9f6b1e00cb959ff7cf4e5dc553cf6
27 lines
804 B
Plaintext
27 lines
804 B
Plaintext
description "etherpad-lite"
|
|
|
|
start on started networking
|
|
stop on runlevel [!2345]
|
|
|
|
env EPHOME=<%= base_install_dir %>/etherpad-lite
|
|
env EPLOGS=<%= base_log_dir %>/<%= ep_user %>
|
|
env EPUSER=<%= ep_user %>
|
|
|
|
respawn
|
|
|
|
pre-start script
|
|
chdir $EPHOME
|
|
mkdir $EPLOGS ||true
|
|
chown $EPUSER:admin $EPLOGS ||true
|
|
chmod 0755 $EPLOGS ||true
|
|
chown -R $EPUSER:admin $EPHOME/var ||true
|
|
bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; }
|
|
end script
|
|
|
|
script
|
|
cd $EPHOME
|
|
exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- /usr/local/bin/node --stack_size=1968 node_modules/ep_etherpad-lite/node/server.js \
|
|
>> $EPLOGS/access.log \
|
|
2>> $EPLOGS/error.log
|
|
end script
|