29 lines
698 B
Django/Jinja
29 lines
698 B
Django/Jinja
[Unit]
|
|
Description = PgAdmin4 uwsgi Service
|
|
After = network.target network-online.target
|
|
Wants = network-online.target
|
|
|
|
[Service]
|
|
User={{ pgadmin4_user }}
|
|
StateDirectory=pgadmin
|
|
RuntimeDirectory=pgadmin4
|
|
LogsDirectory=pgadmin
|
|
ExecStart=uwsgi \
|
|
--socket /run/pgadmin4/pgadmin4.sock --chmod-socket=666 \
|
|
--plugin python3 \
|
|
-H /usr/pgadmin4/venv \
|
|
--processes 1 \
|
|
--threads 25 \
|
|
--chdir /usr/pgadmin4/web/ \
|
|
--manage-script-name \
|
|
--mount /pgadmin4=pgAdmin4:app
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
ExecStop=/bin/kill -INT $MAINPID
|
|
Restart=always
|
|
Type=notify
|
|
StandardError=syslog
|
|
NotifyAccess=all
|
|
KillSignal=SIGQUIT
|
|
|
|
[Install]
|
|
WantedBy = multi-user.target |