mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Merge pull request #2109 from mvdbeek/fix_debian_init_script
Update debian init script
This commit is contained in:
@@ -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 <GALAXY_DIR>/.venv
|
||||
# A simple way to activate this virtualenv is to use the python interpreter in <GALAXY_DIR>/.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
|
||||
|
||||
Reference in New Issue
Block a user