
You must build additional pylons ... I mean we need more file descriptors. Set that in upstart directly since it does not respect limits.conf. This rewrites the upstart job to be more upstarty so that the limits can be applied without su undoing the work. Change-Id: Ibf670f07d75c4ffcf333c971d03c620f839b04d3
30 lines
828 B
Plaintext
30 lines
828 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 -R $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
|
|
|
|
setuid <%= @ep_user %>
|
|
setgid <%= @ep_user %>
|
|
limit nofile 8192 16384
|
|
script
|
|
cd $EPHOME
|
|
/usr/local/bin/node --stack_size=1968 node_modules/ep_etherpad-lite/node/server.js \
|
|
>> $EPLOGS/access.log \
|
|
2>> $EPLOGS/error.log
|
|
end script
|