aboutsummaryrefslogtreecommitdiffstats
path: root/postgresql-prep/src/stage/opt/app/postgresql-prep/init/init-pgaas-init.conf
blob: 4564129c26f490d11ac7943cfcabeaae52390723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# PGaaS - PostgreSQL as a Service
#
# The PGaaS init process needs a directory to be created on reboot
#
# The best way to do this is to have a file in /usr/lib/tmpfiles.d/pgaas:
#	d /var/run/postgresql 0755 postgres postgres -
#
# This is a workaround because systemd-tmpfiles is not present.

description	"PGaaS init setup"

start on runlevel [2345]
stop on runlevel [!2345]

umask 022

pre-start script
    mkdir /var/run/postgresql
    chown postgres:postgres /var/run/postgresql
end script

script
    :
end script