Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- description "etherpad-lite"
- start on started networking
- stop on runlevel [!2345]
- env EPHOME=/opt/etherpad/local/etherpad/etherpad-lite
- env EPLOGS=/var/log/etherpad-lite
- env EPUSER=etherpad
- pre-start script
- cd $EPHOME
- mkdir $EPLOGS ||true
- chown $EPUSER:admin $EPLOGS ||true
- chmod 0755 $EPLOGS ||true
- chown -R $EPUSER:admin $EPHOME/var ||true
- $EPHOME/bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; }
- end script
- script
- cd $EPHOME/
- exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node node_modules/ep_etherpad-lite/node/server.js \
- >> $EPLOGS/access.log \
- 2>> $EPLOGS/error.log
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement