Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
615 B

[Unit]
Description=pgAdmin4 server daemon
After=syslog.target network.target
[Service]
Type=simple
User=pgadmin4_{{ pga_id }}
Group=pgadmin4_{{ pga_id }}
ExecStart={{ pga_root_dir }}/bin/gunicorn --bind 0.0.0.0:{{ pga_port }} \
--workers=1 \
--threads=25 \
--chdir {{ pga_root_dir }}/lib/python3.6/site-packages/pgadmin4 \
pgAdmin4:app
ExecReload=/bin/kill -HUP $MAINPID
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=1024M
SyslogIdentifier=pgadmin4_{{ pga_id }}
Restart=on-failure
[Install]
WantedBy=multi-user.target