aboutsummaryrefslogtreecommitdiffstats
path: root/pgaas/src/stage/opt/app/pgaas/init
diff options
context:
space:
mode:
Diffstat (limited to 'pgaas/src/stage/opt/app/pgaas/init')
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/init-pgaas-idns.conf21
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf24
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/logrotate24
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/makefile38
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/pglogs.cron4
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/systemd-pgaas-idns.service16
-rw-r--r--pgaas/src/stage/opt/app/pgaas/init/tmpfiles-pgaas-init.conf7
7 files changed, 0 insertions, 134 deletions
diff --git a/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-idns.conf b/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-idns.conf
deleted file mode 100644
index 62714f1..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-idns.conf
+++ /dev/null
@@ -1,21 +0,0 @@
-# PGaaS - PostgreSQL as a Service
-#
-# The PGaaS iDNS server provides information on the system, primarily for the iDNS system
-
-description "PGaaS iDNS server"
-
-start on runlevel [2345]
-stop on runlevel [!2345]
-
-respawn
-respawn limit 10 5
-umask 022
-setuid postgres
-
-pre-start script
- test -x /opt/app/pgaas/lib/iDNS-responder || { stop; exit 0; }
-end script
-
-script
- /opt/app/pgaas/lib/iDNS-responder
-end script
diff --git a/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf b/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf
deleted file mode 100644
index 6f03c1f..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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 2755 postgres postgres -
-#
-# This is a workaround because systemd-tmpfiles is not present.
-
-description "PGaaS /var/run/postgresql setup"
-
-start on runlevel [2345]
-stop on runlevel [!2345]
-
-umask 022
-
-pre-start script
- mkdir -p /var/run/postgresql
- chown postgres:postgres /var/run/postgresql
-end script
-
-script
- :
-end script
diff --git a/pgaas/src/stage/opt/app/pgaas/init/logrotate b/pgaas/src/stage/opt/app/pgaas/init/logrotate
deleted file mode 100644
index 8531ed6..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/logrotate
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this code except in compliance
-# with the License. You may obtain a copy of the License
-# at http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-
-
-# rotate PGaaS log files
-
-/opt/logs/dcae/postgresql/init/*.log /opt/logs/dcae/postgresql/idns/*.log /opt/logs/dcae/postgresql/server/*.log {
- missingok
- compress
- daily
- rotate 60
- create
- dateext
-}
diff --git a/pgaas/src/stage/opt/app/pgaas/init/makefile b/pgaas/src/stage/opt/app/pgaas/init/makefile
deleted file mode 100644
index d2d8285..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/makefile
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this code except in compliance
-# with the License. You may obtain a copy of the License
-# at http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-
-
-all:
-
-STAGEDIR=/dev/null
-DISTPATH=/opt/app/pgaas
-
-stage:
- rm -rf $(STAGEDIR)/$(DISTPATH)/init
- mkdir -p $(STAGEDIR)/$(DISTPATH)/init
- for i in *; do \
- case $$i in \
- *.py ) \
- j=`basename $$i .py`; \
- cp $$i $(STAGEDIR)/$(DISTPATH)/init/$$j; \
- chmod a+x $(STAGEDIR)/$(DISTPATH)/init/$$j; \
- ;; \
- makefile | *~ ) ;; \
- * ) \
- if [ -f $$i ]; then \
- cp $$i $(STAGEDIR)/$(DISTPATH)/init/$$i; \
- chmod a+x $(STAGEDIR)/$(DISTPATH)/init/$$i; \
- fi; \
- ;; \
- esac; \
- done
diff --git a/pgaas/src/stage/opt/app/pgaas/init/pglogs.cron b/pgaas/src/stage/opt/app/pgaas/init/pglogs.cron
deleted file mode 100644
index ff621ba..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/pglogs.cron
+++ /dev/null
@@ -1,4 +0,0 @@
-30 * * * * ( date ; find /dbroot/pglogs -type f -mtime +3 -exec rm {} + ) >> /tmp/cleanpglogs.log 2>&1
-50 1 * * * ( mv -f /tmp/cleanpglogs.log /tmp/cleanpglogs.log.old ) > /dev/null 2>&1
-* * * * * [ -x /opt/app/pgaas/bin/update_var_run_isrw ] && /opt/app/pgaas/bin/update_var_run_isrw
-* * * * * [ -x /opt/app/pgaas/bin/check_cluster ] && /opt/app/pgaas/bin/check_cluster -d /var/run/postgresql/check_cluster >> /opt/logs/dcae/postgresql/idns/cluster.log
diff --git a/pgaas/src/stage/opt/app/pgaas/init/systemd-pgaas-idns.service b/pgaas/src/stage/opt/app/pgaas/init/systemd-pgaas-idns.service
deleted file mode 100644
index 007ca36..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/systemd-pgaas-idns.service
+++ /dev/null
@@ -1,16 +0,0 @@
-# PGaaS - PostgreSQL as a Service
-#
-# The PGaaS iDNS server provides information on the system, primarily for the iDNS system
-
-[Unit]
-Description=PGaaS iDNS server
-
-[Service]
-User=postgres
-Group=postgres
-ExecStart= /opt/app/pgaas/lib/iDNS-responder
-Restart=always
-RestartSec=10
-
-[Install]
-WantedBy=multi-user.target
diff --git a/pgaas/src/stage/opt/app/pgaas/init/tmpfiles-pgaas-init.conf b/pgaas/src/stage/opt/app/pgaas/init/tmpfiles-pgaas-init.conf
deleted file mode 100644
index 9341a95..0000000
--- a/pgaas/src/stage/opt/app/pgaas/init/tmpfiles-pgaas-init.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-# PGaaS - PostgreSQL as a Service
-#
-# The PGaaS init process needs a directory to be created on reboot
-#
-
-d /var/run/postgresql 0755 postgres postgres -
-