2 Description=PostgreSQL database server
10 # Port number for server to listen on
11 Environment=PGPORT=5432
13 # Location of database directory
14 Environment=PGDATA=/var/lib/postgresql/19.12
16 # Disable OOM kill on the postmaster
19 PermissionsStartOnly=true
20 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o "-p ${PGPORT}" -w -t 300
21 ExecStop=/usr/bin/pg_ctl stop -D ${PGDATA} -s -m fast
22 ExecReload=/usr/bin/pg_ctl reload -D ${PGDATA} -s
24 # Give a reasonable amount of time for the server to start up/shut down
28 WantedBy=multi-user.target