-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve conf/ *bin/ file names and contents to better support product…
…ion and (mac) development environments
- Loading branch information
Showing
6 changed files
with
128 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
tag-1.4-20201113 JP | ||
- Improve conf/ *bin/ file names and contents to better support production and (mac) development environments | ||
|
||
tag-1.4-20201109 JP | ||
- Send status to info-serv-alert |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/sh | ||
do_start () { | ||
echo -n "Starting ${APP_NAME}:" | ||
export LD_LIBRARY_PATH=${PYTHON_BASE}/lib | ||
source ${PIPENV_BASE}/bin/activate | ||
exec ${PYTHON_BIN} ${APP_BIN} start ${APP_OPTS} | ||
RETVAL=$? | ||
} | ||
do_stop () { | ||
echo -n "Stopping ${APP_NAME}:" | ||
export LD_LIBRARY_PATH=${PYTHON_BASE}/lib | ||
source ${PIPENV_BASE}/bin/activate | ||
exec ${PYTHON_BIN} ${APP_BIN} stop ${APP_OPTS} | ||
RETVAL=$? | ||
} | ||
do_debug () { | ||
echo -n "Debugging: ${PIPENV_BASE}/bin/python ${APP_BIN} -l debug $@ ${APP_OPTS}" | ||
export LD_LIBRARY_PATH=${PYTHON_BASE}/lib | ||
source ${PIPENV_BASE}/bin/activate | ||
exec ${PYTHON_BIN} ${APP_BIN} -l debug $@ ${APP_OPTS} | ||
RETVAL=$? | ||
} | ||
|
||
case "$1" in | ||
start|stop) | ||
do_${1} ${@:2} | ||
;; | ||
|
||
debug) | ||
do_debug ${@:2} | ||
;; | ||
|
||
restart|reload|force-reload) | ||
do_stop | ||
do_start | ||
;; | ||
|
||
status) | ||
echo "Haven't implemented status" | ||
;; | ||
|
||
*) | ||
echo "Usage: ${APP_NAME} {start|stop|debug|restart}" | ||
exit 1 | ||
;; | ||
|
||
esac | ||
echo rc=$RETVAL | ||
exit $RETVAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
DAEMON_NAME=route_glue2 | ||
DAEMON_BIN=/soft/warehouse-apps-1.0/Manage-Glue2/PROD/bin/route_glue2.py | ||
APP_NAME=route_glue2 | ||
APP_BASE=/soft/warehouse-apps-1.0/Manage-Glue2 | ||
APP_BIN=/soft/warehouse-apps-1.0/Manage-Glue2/PROD/bin/route_glue2.py | ||
# Add any command line options for your daemon here | ||
DAEMON_OPTS="-l info -c /soft/warehouse-apps-1.0/Manage-Glue2/conf/route_glue2.conf" | ||
APP_OPTS="-l info -c /soft/warehouse-apps-1.0/Manage-Glue2/conf/route_glue2.conf" | ||
|
||
APP_BASE=/soft/warehouse-apps-1.0/Manage-Glue2 | ||
PYTHON_BASE=/soft/python/python-3.7.5-base | ||
PIPENV_BASE=/soft/warehouse-apps-1.0/Manage-Glue2/python | ||
PYTHON_BIN=python3 | ||
PYTHONPATH=/soft/warehouse-apps-1.0/Manage-Glue2/PROD/lib:/soft/warehouse-1.0/PROD/django_xsede_warehouse | ||
|
||
DJANGO_CONF=/soft/warehouse-apps-1.0/Manage-Glue2/conf/django_xsede_warehouse.conf | ||
DJANGO_SETTINGS_MODULE=xsede_warehouse.settings |