2 Description=PostgreSQL database server
8 # start timeout disabled because initdb may run a little
9 # longer (eg. 5 minutes on RaspberryPi)
15 SyslogIdentifier=postgres
16 PIDFile=/var/lib/pgsql/postmaster.pid
18 ExecStartPre=/bin/sh -c "if [ ! -f /var/lib/pgsql/PG_VERSION ]; then /usr/bin/pg_ctl initdb -D /var/lib/pgsql; fi"
19 ExecStart=/usr/bin/pg_ctl start -D /var/lib/pgsql -w -l /var/lib/pgsql/logfile
20 ExecReload=/usr/bin/pg_ctl reload -D /var/lib/pgsql
21 ExecStop=/usr/bin/pg_ctl stop -D /var/lib/pgsql -m fast
24 WantedBy=multi-user.target