aaP_guisaldanha When I use the command systemctl restart myapp.com_pymanager
the project log shows me
[2024-02-10 19:29:43 -0300] [15341] [INFO] Starting gunicorn 21.2.0
[2024-02-10 19:29:43 -0300] [15345] [INFO] Starting gunicorn 21.2.0
When I restart the project from the Python Manager interface I have the log
[2024-02-10 19:30:34 -0300] [15472] [INFO] Starting gunicorn 21.2.0
[2024-02-10 19:30:34 -0300] [15472] [INFO] Listening at: http://0.0.0.0:8000 (15472)
[2024-02-10 19:30:34 -0300] [15472] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
[2024-02-10 19:30:34 -0300] [15475] [INFO] Booting worker with pid: 15475
[2024-02-10 19:30:34 -0300] [15477] [INFO] Starting gunicorn 21.2.0
In other words, restarting from the Python Manager interface apparently executes something more than the command systemctl restart myapp.com_pymanager
Follow the code from /etc/init.d/myapp.com_pymanager
cat /etc/init.d/myapp.com_pymanager
#!/bin/bash
# chkconfig: 2345 55 25
# description: myapp.com
### BEGIN INIT INFO
# Provides: myapp.com
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: myapp.com
# Description: myapp.com
### END INIT INFO
/www/wwwroot/myapp.com_code//6886015edf4ab20c552c50c689a05c0e_venv/bin/gunicorn -c /www/wwwroot/myapp.com_code//gunicorn.conf project.wsgi:application
I'm using aapanel version 6.8.33
Current version: aaPanel LinuxStable 6.8.33 Release time: 2023/12/13
Python Manager 2.0
My project is running on python 3.12.0