Advertisement
Guest User

eplite_lfb

a guest
Jan 9th, 2013
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. description "etherpad-lite"
  2.  
  3.  
  4. start on started networking
  5. stop on runlevel [!2345]
  6.  
  7. env EPHOME=/opt/etherpad/local/etherpad/etherpad-lite
  8. env EPLOGS=/var/log/etherpad-lite
  9. env EPUSER=etherpad
  10.  
  11.  
  12. pre-start script
  13. cd $EPHOME
  14. mkdir $EPLOGS ||true
  15. chown $EPUSER:admin $EPLOGS ||true
  16. chmod 0755 $EPLOGS ||true
  17. chown -R $EPUSER:admin $EPHOME/var ||true
  18. $EPHOME/bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; }
  19. end script
  20.  
  21. script
  22. cd $EPHOME/
  23. exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node node_modules/ep_etherpad-lite/node/server.js \
  24. >> $EPLOGS/access.log \
  25. 2>> $EPLOGS/error.log
  26. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement