From d6a7acab996b7a157ce7de07117b523ae4e0fa46 Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Fri, 8 Apr 2016 16:52:21 +0200 Subject: [PATCH] Update debian init script to include instructions for starting galaxy >= 16.01. --- contrib/galaxy.debian-init | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/galaxy.debian-init b/contrib/galaxy.debian-init index 98f2d32d659..edb94128486 100644 --- a/contrib/galaxy.debian-init +++ b/contrib/galaxy.debian-init @@ -15,8 +15,12 @@ USER="galaxy" GROUP="nogroup" -DIR="/home/galaxy/galaxy_dist/" -PYTHON="/usr/bin/python" +GALAXY_DIR="/home/galaxy/galaxy_dist/" +# Galaxy releases >= 16.01 installs dependencies by default into a virtualenv in /.venv +# A simple way to activate this virtualenv is to use the python interpreter in /.venv +# See https://wiki.galaxyproject.org/News/2016_01_GalaxyRelease and +# https://github.com/galaxyproject/galaxy/blob/dev/doc/source/admin/framework_dependencies.rst +PYTHON="/home/galaxy/galaxy_dist/.venv/bin/python" OPTS="./scripts/paster.py serve --log-file /home/galaxy/galaxy.log config/galaxy.ini" PIDFILE="/var/run/galaxy.pid" @@ -24,7 +28,7 @@ case "${1:-''}" in 'start') log_daemon_msg "Starting Galaxy" if start-stop-daemon --chuid $USER --group $GROUP --start --make-pidfile \ - --pidfile $PIDFILE --background --chdir $DIR --exec $PYTHON -- $OPTS; then + --pidfile $PIDFILE --background --chdir $GALAXY_DIR --exec $PYTHON -- $OPTS; then log_end_msg 0 else log_end_msg 1