2018-11-13 15:20:53 +00:00
|
|
|
# It's not recommended to modify this file in-place, because it will be
|
|
|
|
|
# overwritten during package upgrades. If you want to customize, the
|
|
|
|
|
# best way is to create a file "/etc/systemd/system/pgadmin4.service",
|
|
|
|
|
# containing
|
|
|
|
|
# .include /lib/systemd/system/pgadmin4.service
|
|
|
|
|
# ...make your changes here...
|
|
|
|
|
# For more info about custom unit files, see
|
|
|
|
|
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=pgAdmin4
|
|
|
|
|
After=syslog.target
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
|
2021-02-02 14:24:13 +00:00
|
|
|
User=pgadmin
|
|
|
|
|
Group=pgadmin
|
2023-10-27 13:08:10 +00:00
|
|
|
ExecStart=PYTHONDIR PYTHONSITELIB/pgadmin4/pgAdmin4.py
|
2018-11-13 15:20:53 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
KillMode=mixed
|
|
|
|
|
KillSignal=SIGINT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Give a reasonable amount of time for the server to start up/shut down
|
|
|
|
|
TimeoutSec=300
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|