Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #============================================
- # Ubooquity
- # upstart job configuration file for automatically
- # starting ubooquity when syno starts
- # title :ubooquity.conf
- # date :20 11 2015
- # original source: ubooquity forum about special characters
- # http://ubooquity.userecho.com/topic/907059-comics-not-imported-umlaut-mark-bug/
- #=============================================description "start/stop Ubooquity"
- # author "Elouan Le Bretton"
- # automatically starts ubooquity after apache has been started
- start on started httpd-user
- # stop ubooquity on
- stop on runlevel [06]
- # [TODO] automatically respawn ubooquity if stops
- # respawn
- # respawn limit 5 10
- # run the scripts as the 'http' user. Running as root (the default) is a bad idea.
- setuid http
- script # System variables.
- JAVA_DIR=/var/packages/java7/target/j2sdk-image/jre/bin
- WORK_DIR="/volume1/comics/Ubooquity"
- PKG_DIR=/var/packages/Ubooquity
- PORT=2202
- MEM=Xmx128m
- # prepare environment
- LANG=en_US.UTF-8
- export LANG
- exec $JAVA_DIR/java -Dfile.encoding=UTF-8 -$MEM -jar $PKG_DIR/Ubooquity.jar -port $PORT -webadmin -headless -workdir $WORK_DIR
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement