From 1c6ee4122bdf090edc6d2901f3e27141a1ff598c Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Fri, 21 Jul 2023 19:20:33 +0300 Subject: [PATCH] postgresqls:Fixed server running issue and file paths --- server/database/postgresql/comar/package.py | 3 +- server/database/postgresql/comar/service.py | 4 +- server/database/postgresql/pspec.xml | 121 +++++++++++++------- 3 files changed, 83 insertions(+), 45 deletions(-) diff --git a/server/database/postgresql/comar/package.py b/server/database/postgresql/comar/package.py index 289666e299..5623b20ead 100644 --- a/server/database/postgresql/comar/package.py +++ b/server/database/postgresql/comar/package.py @@ -12,4 +12,5 @@ def postInstall(fromVersion, fromRelease, toVersion, toRelease): for i in ["LANG", "LANGUAGE", "LC_ALL"]: os.environ[i] = "en_US.UTF-8" - os.system('/bin/su postgres -s /bin/sh -p -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data"') \ No newline at end of file + os.system('/bin/su postgres -s /bin/sh -p -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data"') + os.system('/bin/su postgres -s /bin/sh -p -c "/usr/bin/pg_ctl --pgdata -l logfile start"') diff --git a/server/database/postgresql/comar/service.py b/server/database/postgresql/comar/service.py index 3126257eec..7e1689bd6d 100644 --- a/server/database/postgresql/comar/service.py +++ b/server/database/postgresql/comar/service.py @@ -19,7 +19,7 @@ def check_postgresql(): fail(MSG_ERR_PGSQLNOTINST) PIDFILE = "%s/postmaster.pid" % config.get("PGDATA", "/var/lib/postgresql/data") - +#pg_ctl @synchronized def start(): check_postgresql() @@ -42,4 +42,4 @@ def reload(): donotify=True) def status(): - return isServiceRunning(PIDFILE) \ No newline at end of file + return isServiceRunning(PIDFILE) diff --git a/server/database/postgresql/pspec.xml b/server/database/postgresql/pspec.xml index 57cf8863fc..4989671e9b 100644 --- a/server/database/postgresql/pspec.xml +++ b/server/database/postgresql/pspec.xml @@ -32,65 +32,72 @@ - - postgresql-lib - library - Essential shared libraries for any PostgreSQL client program or interface - - mit-kerberos - python3 - lz4 - zlib - libxml2 - openssl - e2fsprogs - libxslt - openldap-client - - - /usr/lib - /usr/include - /usr/lib/pkgconfig - /usr/share/postgresql - /usr/bin/pg_config - - - - - postgresql-doc - data:doc - Postgresql documents - Additional documentation for PostgreSQL. - - postgresql-lib - - - /usr/share/doc - - - postgresql-server service - postgresql-lib pam lz4 zlib libxml2 + libxslt openssl + python3 readline - e2fsprogs mit-kerberos - openldap-server openldap-client + /usr/bin/clusterdb + /usr/bin/reindexdb + /usr/bin/pgbench + /usr/bin/initdb + /usr/bin/psql + /usr/bin/ecpg + /usr/bin/oid2name + /usr/bin/postgresql + /usr/bin/pg_* + /usr/bin/creat* + /usr/bin/vacuum* + /usr/bin/drop* + /usr/bin/post* + /usr/bin/pg_config /etc - /usr/bin /usr/share/locale /usr/share/postgresql/contrib + /usr/share/postgresql/extension + /usr/share/postgresql/tsearch_data + /usr/share/postgresql/timezonesets + /usr/lib/postgresql/pgxs /usr/share/man + /usr/lib/postgresql/a* + /usr/lib/postgresql/b* + /usr/lib/postgresql/c* + /usr/lib/postgresql/d* + /usr/lib/postgresql/e* + /usr/lib/postgresql/f* + /usr/lib/postgresql/h* + /usr/lib/postgresql/i* + /usr/lib/postgresql/j* + /usr/lib/postgresql/l* + /usr/lib/postgresql/m* + /usr/lib/postgresql/o* + /usr/lib/postgresql/pa* + /usr/lib/postgresql/pg* + /usr/lib/postgresql/plpgsql.so + /usr/lib/postgresql/plpython3.so + /usr/lib/postgresql/po* + /usr/lib/postgresql/r* + /usr/lib/postgresql/s* + /usr/lib/postgresql/t* + /usr/lib/postgresql/u* + /usr/lib/postgresql/_int* + /usr/lib/lib* + /usr/share/postgresql/s* + /usr/lib/postgresql/utf8* + /usr/share/postgresql/p* + /usr/share/postgresql/information_schema.sql + /usr/share/postgresql/errcodes.txt /var/lib @@ -105,7 +112,6 @@ postgresql-pl - postgresql-lib tcl perl @@ -120,7 +126,38 @@ + + postgresql-doc + data:doc + Postgresql documents + Additional documentation for PostgreSQL. + + /usr/share/doc + + + + + postgresql-lib + library + Essential shared libraries for any PostgreSQL client program or interface + + postgresql-server + openssl-devel + + + /usr/include + /usr/lib/pkgconfig + + + + + 2023-07-21 + 15.3 + Fixed server running issue and file paths + Ayhan Yalçınsoy + ayhanyalcinsoy@pisilinux.org + 2023-05-27 15.3