projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e9f61f
)
FIX: log all PG stdout/err logs to /var/log/postgres
author
Sam
<sam.saffron@gmail.com>
Tue, 26 Dec 2017 22:55:33 +0000
(09:55 +1100)
committer
Sam
<sam.saffron@gmail.com>
Tue, 26 Dec 2017 22:55:33 +0000
(09:55 +1100)
templates/postgres.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/postgres.template.yml
b/templates/postgres.template.yml
index 1f30fcf35797353bc17e1d39ccb9f92dad4d92f5..d483b76899b829041f4d277500ce784528d90242 100644
(file)
--- a/
templates/postgres.template.yml
+++ b/
templates/postgres.template.yml
@@
-36,8
+36,14
@@
run:
contents: |
#!/bin/sh
exec 2>&1
- echo -1000 >/proc/self/oom_score_adj
HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main
+ - file:
+ path: /etc/service/postgres/log/run
+ chmod: "+x"
+ contents: |
+ #!/bin/sh
+ mkdir -p /var/log/postgres
+ exec svlogd /var/log/postgres
- file:
path: /etc/runit/3.d/99-postgres