Guest User

Untitled

a guest
May 1st, 2016
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #============================================
  2. # Ubooquity
  3. # upstart job configuration file for automatically
  4. # starting ubooquity when syno starts
  5. # title :ubooquity.conf
  6. # date :20 11 2015
  7. # original source: ubooquity forum about special characters
  8. # http://ubooquity.userecho.com/topic/907059-comics-not-imported-umlaut-mark-bug/
  9. #=============================================description "start/stop Ubooquity"
  10. # author "Elouan Le Bretton"
  11.  
  12. # automatically starts ubooquity after apache has been started
  13. start on started httpd-user
  14.  
  15. # stop ubooquity on
  16. stop on runlevel [06]
  17.  
  18. # [TODO] automatically respawn ubooquity if stops
  19. # respawn
  20. # respawn limit 5 10
  21.  
  22. # run the scripts as the 'http' user. Running as root (the default) is a bad idea.
  23. setuid http
  24.  
  25. script # System variables.
  26. JAVA_DIR=/var/packages/java7/target/j2sdk-image/jre/bin
  27. WORK_DIR="/volume1/comics/Ubooquity"
  28. PKG_DIR=/var/packages/Ubooquity
  29. PORT=2202
  30. MEM=Xmx128m
  31. # prepare environment
  32. LANG=en_US.UTF-8
  33. export LANG
  34. exec $JAVA_DIR/java -Dfile.encoding=UTF-8 -$MEM -jar $PKG_DIR/Ubooquity.jar -port $PORT -webadmin -headless -workdir $WORK_DIR
  35. end script
RAW Paste Data