HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //proc/23796/root/lib/systemd/system/pgsql.service
[Unit]
Description=PostgreSQL database server
DefaultDependencies=no
IgnoreOnIsolate=yes

[Service]
Type=notify
User=postgres
Group=postgres
Environment=PGDATA=/var/services/pgsql
ExecStart=/usr/bin/postgres -D ${PGDATA}
ExecStop=/usr/lib/systemd/scripts/pgsql.sh stop-pgsql $MAINPID
ExecReload=/usr/bin/pg_ctl -s -D ${PGDATA} reload
KillMode=none
Restart=always
Slice=syno_dsm_internal.slice

# Disable OOM kill on the postmaster
OOMScoreAdjust=-1000
Environment=PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj
Environment=PG_OOM_ADJUST_VALUE=0

# Do not set any timeout value, so that systemd will not kill postmaster
# during crash recovery.
TimeoutStartSec=0
TimeoutStopSec=130s

# Where to send early-startup messages from the server (before the logging
# options of postgresql.conf take effect)
# This is normally controlled by the global default set by systemd
StandardOutput=syslog
StandardError=syslog
SyslogLevel=err

[X-Synology]
Master=pgsql-adapter.service
NameI18n=helptoc:system_database