1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCS server python code uses python3 by default in (RHEL|Centos)8, (Suse|SLES)15 and Fedora whilst other distributions use default python interpreter.

RPM now restarts MDB on uninstall.

systemd logs a message if SM is not configured.
This commit is contained in:
Roman Nozdrin
2020-06-17 11:41:20 +00:00
parent 931a629f1b
commit 1398cf20d6
5 changed files with 37 additions and 1 deletions

View File

@ -23,7 +23,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/mcs-loadbrm.service.in" "${CMAKE_CUR
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/mcs-storagemanager.service.in" "${CMAKE_CURRENT_SOURCE_DIR}/mcs-storagemanager.service" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/mcs-stop-controllernode.sh.in" "${CMAKE_CURRENT_SOURCE_DIR}/mcs-stop-controllernode.sh" @ONLY)
IF(RPM MATCHES "(rhel|centos)8")
IF(RPM MATCHES "(rhel|centos)8|(sles|suse)15|fedora")
SET(PYTHON_SHEBANG "#!/usr/bin/env python3")
ELSE()
SET(PYTHON_SHEBANG "#!/usr/bin/env python")

View File

@ -29,5 +29,7 @@ if __name__ == '__main__':
if storage.lower() == 's3' and not bucket.lower() == 'some_bucket':
print("Using S3 storage.")
sys.exit(0)
print("S3 storage has not been set up for MariaDB ColumnStore. StorageManager service fails to start.")
sys.exit(1)