From b56ac216ce17cb62631d4452a1b3f0b26f28dd6a Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 6 Sep 2018 14:52:46 +0200 Subject: [PATCH] postgres test2 --- postgres/lxc/etc/services.d/.s6-svscan/finish | 3 --- postgres/lxc/etc/services.d/postgres/run | 5 ----- postgres/lxcfile | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100755 postgres/lxc/etc/services.d/.s6-svscan/finish delete mode 100755 postgres/lxc/etc/services.d/postgres/run diff --git a/postgres/lxc/etc/services.d/.s6-svscan/finish b/postgres/lxc/etc/services.d/.s6-svscan/finish deleted file mode 100755 index 78d5fdc..0000000 --- a/postgres/lxc/etc/services.d/.s6-svscan/finish +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/bin/true diff --git a/postgres/lxc/etc/services.d/postgres/run b/postgres/lxc/etc/services.d/postgres/run deleted file mode 100755 index 92284df..0000000 --- a/postgres/lxc/etc/services.d/postgres/run +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/execlineb -P - -fdmove -c 2 1 -s6-setuidgid 5432:5432 -/usr/bin/postgres -D /var/lib/postgresql diff --git a/postgres/lxcfile b/postgres/lxcfile index aca012f..13428e3 100644 --- a/postgres/lxcfile +++ b/postgres/lxcfile @@ -18,9 +18,9 @@ SCRIPT chown postgres:postgres /run/postgresql RUN -COPY lxc +COPY /bin/init.lxc.static MOUNT /srv/postgres/data var/lib/postgresql USER 5432 5432 -CMD s6-svscan /etc/services.d +CMD /init.lxc.static -- /usr/bin/postgres -D /var/lib/postgresql