s/SUBSONIC/LIBRESONIC
Signed-off-by: Bernardus Jansen <bernardus@bajansen.nl>
This commit is contained in:
@@ -28,14 +28,14 @@ NAME=libresonic
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
LOCKFILE=/var/lock/subsys/$NAME
|
||||
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
|
||||
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
@@ -53,12 +53,12 @@ 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
|
||||
|
||||
echo $"Starting $NAME ..."
|
||||
su -c "$DAEMON $DAEMON_ARGS" $SUBSONIC_USER
|
||||
su -c "$DAEMON $DAEMON_ARGS" $LIBRESONIC_USER
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && touch $LOCKFILE
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user