Your comments

I post my script here as a backup.


#!/usr/bin/env bash
#title           : ubooquity.sh
#description     : Launch ubooquity server.
#date            : 20170807
#============================================================================== ### JAVA VARIABLES ###
# Java installation directory
JAVA_DIR=/var/packages/java/target/bin
# Maximum size of the Java runtime memory allocation pool. Default: 64MB
MEM=512m ### UBOOQUITY VARIABLES ###
# Ubooquity binary location
UBOOQUITY_BIN=/var/packages/Ubooquity/Ubooquity.jar
# Ubooquity working directory
WORK_DIR=/volume1/ebooks/.ubooquity
# Ubooquity process ID file location
PID_FILE=$WORK_DIR/ubooquity.pid
# Ubooquity library port
LIB_PORT=2202
# Ubooquity administration port
ADMIN_PORT=2203 ### ENVIRONMENT VARIABLES ###
# Character encoding
ENCO=UTF-8
# Locale selection
LANG=en_US.$ENCO ### SCRIPT ###
# Workaround to read special characters properly
export LANG # Kill previous process
if [ -f $PID_FILE ]; then
    pkill -F $PID_FILE > /dev/null 2>&1
fi # Launch ubooquity
printf "Starting Ubooquity server...\n" $JAVA_DIR/java -jar -Dfile.encoding=$ENCO -Xmx$MEM $UBOOQUITY_BIN \
               --adminport $ADMIN_PORT --libraryport $LIB_PORT \
               --workdir $WORK_DIR \
               --remoteadmin --headless & UBOOQUITY_PID=$! echo $UBOOQUITY_PID > $PID_FILE printf "Ubooquity is now running (pid: %d).\n" $UBOOQUITY_PID exit 0


Update: Since DSM 6.0 http-user is replaced by nginx.

The 'start on' line in the conf is:

start on started nginx

Hi, I made a theme named Dusk : Download Here.

It's based on "The Gray" by Justin Brown. Thank you for your work.

Reminder: Once the new theme is selected, flush the cache of your browser and reload the page to fully enjoy the new experience.

Check your certificate validity.

ComicTagger is what I use.

Just sharing my ubooquity.conf.


#/etc/init/ubooquity.conf

# automatically starts ubooquity after apache has been started
start on started httpd-user

# stop ubooquity on
stop on runlevel [06]

script
    JAVA_DIR=/var/packages/java8/target/ejdk1.8.0_101/linux_arm_sflt/jre/bin
    WORK_DIR=/volume1/ebooks/.ubooquity
    PKG_DIR=/var/packages/Ubooquity
    PKG=Ubooquity.jar
    PORT=2202
    MEM=512m
    ENCODING=UTF-8
    LANG=en_US.$ENCODING

    export LANG
    exec $JAVA_DIR/java -Dfile.encoding=$ENCODING -jar -Xmx$MEM $PKG_DIR/$PKG -port $PORT -webadmin -headless -workdir $WORK_DIR
end script