- this works:
- pronto@ifconfig:~/ifpro$ /home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app
- [2024-08-13 01:45:11 +0000] [46447] [INFO] Starting gunicorn 23.0.0
- [2024-08-13 01:45:11 +0000] [46447] [INFO] Listening at: unix:ifpro.sock (46447)
- [2024-08-13 01:45:11 +0000] [46447] [INFO] Using worker: sync
- [2024-08-13 01:45:11 +0000] [46448] [INFO] Booting worker with pid: 46448
- [2024-08-13 01:45:11 +0000] [46449] [INFO] Booting worker with pid: 46449
- [2024-08-13 01:45:11 +0000] [46450] [INFO] Booting worker with pid: 46450
- ------------------------------
- ; systemd service
- [Unit]
- Description=wtf ifconfig pro pysite
- After=network.target
- [Service]
- User=pronto
- Group=www-data
- WorkingDirectory=/home/pronto/ifpro
- Environment="PATH=/home/pronto/ifpro/ifproenv/bin"
- ExecStart="/home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app"
- [Install]
- WantedBy=multi-user.target
- ------------------------------
- × ifpro.service - wtf ifconfig pro pysite
- Loaded: loaded (/etc/systemd/system/ifpro.service; disabled; preset: enabled)
- Active: failed (Result: exit-code) since Tue 2024-08-13 01:47:57 UTC; 1s ago
- Duration: 3ms
- Process: 46556 ExecStart=/home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app (code=exited, status=203/EXEC)
- Main PID: 46556 (code=exited, status=203/EXEC)
- CPU: 621us
- Aug 13 01:47:57 ifconfig systemd[1]: Started ifpro.service - wtf ifconfig pro pysite.
- Aug 13 01:47:57 ifconfig (wsgi:app)[46556]: ifpro.service: Failed to locate executable /home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app: No such file or directory
- Aug 13 01:47:57 ifconfig (wsgi:app)[46556]: ifpro.service: Failed at step EXEC spawning /home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app: No such file or directory
- Aug 13 01:47:57 ifconfig systemd[1]: ifpro.service: Main process exited, code=exited, status=203/EXEC
- Aug 13 01:47:57 ifconfig systemd[1]: ifpro.service: Failed with result 'exit-code'.
- ----------------------------------------
- pronto@ifconfig:~/ifpro$ file /home/pronto/ifpro/ifproenv/bin
- /home/pronto/ifpro/ifproenv/bin: directory
- pronto@ifconfig:~/ifpro$ file /home/pronto/ifpro/ifproenv/bin/gunicorn
- /home/pronto/ifpro/ifproenv/bin/gunicorn: Python script, ASCII text executable