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