2017-09-21 15:48:21 +02:00
|
|
|
[Unit]
|
|
|
|
|
|
|
|
Description=PostgreSQL database server
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=postgres
|
|
|
|
EnvironmentFile=-/etc/sysconfig/postgresql
|
2017-09-21 18:15:27 +02:00
|
|
|
ExecStart=/usr/lib/postgresql-script start
|
|
|
|
ExecStop=/usr/lib/postgresql-script stop
|
|
|
|
ExecReload=/usr/lib/postgresql-script reload
|
2017-09-21 15:48:21 +02:00
|
|
|
|
|
|
|
# The server might be slow to stop, and that's fine. Don't kill it
|
|
|
|
SendSIGKILL=no
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|