s/SUBSONIC/LIBRESONIC

Signed-off-by: Bernardus Jansen <bernardus@bajansen.nl>
This commit is contained in:
Bernardus Jansen
2016-05-15 11:27:13 +02:00
parent 747ab8db2d
commit 32c1bb31ac
17 changed files with 92 additions and 92 deletions
@@ -3,7 +3,7 @@
# (/etc/init.d/libresonic)
#
# To change the startup parameters of Libresonic, modify
# the SUBSONIC_ARGS variable below.
# the LIBRESONIC_ARGS variable below.
#
# Type "/usr/share/libresonic/libresonic.sh --help" on the command line to read an
# explanation of the different options.
@@ -12,9 +12,9 @@
# and 443 (for https), and use a Java memory heap size of 200 MB, use
# the following:
#
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=200"
# LIBRESONIC_ARGS="--port=80 --https-port=443 --max-memory=200"
SUBSONIC_ARGS="--max-memory=150"
LIBRESONIC_ARGS="--max-memory=150"
# The user which should run the Libresonic process. Default "root".
@@ -22,4 +22,4 @@ SUBSONIC_ARGS="--max-memory=150"
# below 1024. Also make sure to grant the user write permissions in
# the music directories, otherwise changing album art and tags will fail.
SUBSONIC_USER=root
LIBRESONIC_USER=root
@@ -22,14 +22,14 @@ DESC="Libresonic Daemon"
NAME=libresonic
PIDFILE=/var/run/$NAME.pid
DAEMON=/usr/bin/$NAME
DAEMON_ARGS="--pidfile=$PIDFILE $SUBSONIC_ARGS"
DAEMON_ARGS="--pidfile=$PIDFILE $LIBRESONIC_ARGS"
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Run as root if SUBSONIC_USER is not set.
[ "$SUBSONIC_USER" = "" ] && SUBSONIC_USER=root
# Run as root if LIBRESONIC_USER is not set.
[ "$LIBRESONIC_USER" = "" ] && LIBRESONIC_USER=root
# Make sure Libresonic is started with system locale
if [ -r /etc/default/locale ]; then
@@ -61,11 +61,11 @@ do_start()
fi
touch $PIDFILE
chown $SUBSONIC_USER $PIDFILE
[ -e /var/libresonic ] && chown -R $SUBSONIC_USER /var/libresonic
[ -e /tmp/libresonic ] && chown -R $SUBSONIC_USER /tmp/libresonic
chown $LIBRESONIC_USER $PIDFILE
[ -e /var/libresonic ] && chown -R $LIBRESONIC_USER /var/libresonic
[ -e /tmp/libresonic ] && chown -R $LIBRESONIC_USER /tmp/libresonic
start-stop-daemon --start -c $SUBSONIC_USER --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 2
start-stop-daemon --start -c $LIBRESONIC_USER --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 2
}
#