1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[Unit] Description=PostgreSQL-1C database server After=network.target [Service] Type=simple TimeoutSec=120 User=postgres Group=postgres Environment=PGROOT=/var/lib/postgres SyslogIdentifier=postgres PIDFile=/var/lib/postgres/postmaster.pid ExecStart=/usr/bin/postgres -D ${PGROOT}/data PrivateTmp=yes OOMScoreAdjust=-200 [Install] WantedBy=multi-user.target