Guest

pgpg

Apr 18th, 2026
18
0
Never
Not a member of GistPad yet? Sign Up, it unlocks many cool features!
None 1.52 KB | None | 0 0
  1. [Unit]
  2. Description=PostgreSQL Database Server
  3. Documentation=man:postgres(1)
  4. After=network.target
  5. After=syslog.target
  6.  
  7. [Service]
  8. Type=notify
  9. User=postgres
  10. Group=postgres
  11.  
  12. Environment=PGDATA=/var/lib/postgresql/data
  13.  
  14. ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA}
  15. ExecStart=/usr/bin/postgres -D ${PGDATA}
  16. ExecReload=/bin/kill -HUP $MAINPID
  17.  
  18. KillMode=mixed
  19. KillSignal=SIGINT
  20.  
  21. TimeoutSec=infinity
  22.  
  23. [Install]
  24. WantedBy=multi-user.target
RAW Paste Data Copied