Skip to content

Commit

Permalink
Use bash for startup script, fix sysconfig variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnavarro committed Oct 21, 2022
1 parent a8d9a03 commit c74c3c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sbin/router_cider.service.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
do_start () {
echo -n "Starting %APP_NAME%:"
export LD_LIBRARY_PATH=${PYTHON_BASE}/lib
Expand Down
8 changes: 4 additions & 4 deletions sbin/router_cider.sysconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ APP_NAME=%APP_NAME%
APP_BASE=%APP_HOME%
APP_BIN=%APP_HOME%/PROD/bin/%APP_NAME%.py
# Add any command line options for your daemon here
APP_OPTS="-l info -c ${APP_BASE}/conf/%APP_NAME%.conf"
APP_OPTS="-l info -c %APP_BASE%/conf/%APP_NAME%.conf"

PYTHON_BASE=%PYTHON_BASE%
PIPENV_BASE=${APP_BASE}/python
PIPENV_BASE=%APP_BASE%/python
PYTHON_BIN=python3
PYTHONPATH=${APP_BASE}/PROD/lib:%WAREHOUSE_DJANGO%
PYTHONPATH=%APP_BASE%/PROD/lib:%WAREHOUSE_DJANGO%

DJANGO_CONF=${APP_BASE}/conf/django_prod_router.conf
DJANGO_CONF=%APP_BASE%/conf/django_prod_router.conf
DJANGO_SETTINGS_MODULE=Operations_Warehouse_Django.settings

0 comments on commit c74c3c2

Please sign in to comment.