diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-02-24 09:38:11 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-01 16:10:38 -0800 |
commit | 742404cc8ab08316b0c02310c89958972d43d22e (patch) | |
tree | 0fbbb80e1716548f3fe2b9d8383f9da8ad707abc /meta-oe/recipes-support/postgresql/files/postgresql.service | |
parent | eaff8c24ab1b88efc9340d90c268f4aea3795992 (diff) | |
download | meta-openembedded-742404cc8ab08316b0c02310c89958972d43d22e.tar.gz |
postgres: move to recipes-dbs
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/postgresql/files/postgresql.service')
-rw-r--r-- | meta-oe/recipes-support/postgresql/files/postgresql.service | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/meta-oe/recipes-support/postgresql/files/postgresql.service b/meta-oe/recipes-support/postgresql/files/postgresql.service deleted file mode 100644 index 4ec959e842..0000000000 --- a/meta-oe/recipes-support/postgresql/files/postgresql.service +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
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/data | ||
15 | |||
16 | # Disable OOM kill on the postmaster | ||
17 | OOMScoreAdjust=-17 | ||
18 | |||
19 | ExecStart=@BINDIR@/pg_ctl start -D ${PGDATA} -s -o "-p ${PGPORT}" -w -t 300 | ||
20 | ExecStop=@BINDIR@/pg_ctl stop -D ${PGDATA} -s -m fast | ||
21 | ExecReload=@BINDIR@/pg_ctl reload -D ${PGDATA} -s | ||
22 | |||
23 | # Give a reasonable amount of time for the server to start up/shut down | ||
24 | TimeoutSec=300 | ||
25 | |||
26 | [Install] | ||
27 | WantedBy=multi-user.target | ||