HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/systemd/system/pgadmin4.service
[Unit]
Description=Gunicorn for pgAdmin4 By Webuzo
After=network.target

[Service]
User=webuzo
Group=webuzo

WorkingDirectory=/var/webuzo-data/pgadmin4/pgadmin_venv/lib/python3.11/site-packages/pgadmin4

Environment="PATH=/var/webuzo-data/pgadmin4/pgadmin_venv/bin"
Environment=SCRIPT_NAME=/pgadmin4

# Gunicorn command to run pgAdmin
ExecStart=/var/webuzo-data/pgadmin4/pgadmin_venv/bin/gunicorn \
    --workers 1 \
	--threads 25 \
    --bind unix:/tmp/pgadmin4.sock \
    --chdir /var/webuzo-data/pgadmin4/pgadmin_venv/lib/python3.11/site-packages/pgadmin4 \
	--umask 007 \
    pgAdmin4:app

Restart=on-always
RestartSec=5

[Install]
WantedBy=multi-user.target