Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-dbs / postgresql / postgresql / postgresql.service.update
1 [Unit]
2 Description=PostgreSQL database server
3 After=network.target
4
5 [Service]
6 Type=forking
7 User=postgres
8 Group=postgres
9
10 # Port number for server to listen on
11 Environment=PGPORT=5432
12
13 # Location of database directory
14 Environment=PGDATA=/var/lib/postgresql/19.12
15
16 # Disable OOM kill on the postmaster
17 OOMScoreAdjust=-17
18
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
23
24 # Give a reasonable amount of time for the server to start up/shut down
25 TimeoutSec=300
26
27 [Install]
28 WantedBy=multi-user.target
29 ""