From 8c95179f41951387bfdfc6ab29f42999c1a47e67 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 17 Mar 2021 00:51:58 +0100 Subject: [PATCH] More ynh_install_python removal --- conf/gunicorn.py | 2 +- conf/systemd.service | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/gunicorn.py b/conf/gunicorn.py index dc73fdb..db092a2 100644 --- a/conf/gunicorn.py +++ b/conf/gunicorn.py @@ -1,4 +1,4 @@ -command = '__PYTHON_PATH__/gunicorn' +command = '__FINALPATH__/venv/bin/gunicorn' pythonpath = '__FINALPATH__' workers = 4 user = '__APP__' diff --git a/conf/systemd.service b/conf/systemd.service index ccd671c..c25b84f 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ PIDFile=__FINALPATH__/__APP__-pid User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__ -ExecStart=__PYTHON_PATH__/gunicorn -c __FINALPATH__/venv/bin/gunicorn.py wsgi:app --pid __FINALPATH__/__APP__-pid +ExecStart=__FINALPATH__/venv/bin/gunicorn -c __FINALPATH__/gunicorn.py wsgi:app --pid __FINALPATH__/__APP__-pid ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID PrivateTmp=true diff --git a/scripts/install b/scripts/install index 64f5dc5..4c3f7b7 100755 --- a/scripts/install +++ b/scripts/install @@ -137,7 +137,7 @@ popd ynh_script_progression --message="Configuring a systemd service..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config #================================================= # MODIFY A CONFIG FILE diff --git a/scripts/upgrade b/scripts/upgrade index 32e3dec..41e1ebb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,7 +129,7 @@ popd ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config #================================================= # MODIFY A CONFIG FILE