Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Config not saved when shutting down #18

Description

@frankgrimes97

Hi, I'm running docker run -p 5433:5433 -d -v ~/vertica_data:/home/dbadmin/docker jbfavre/vertica:9.2.0-7_centos-7 but when shutting down the following lines are not executed:

https://github.com/jbfavre/docker-vertica/blob/master/docker-entrypoint.sh#L15-L19

As a consequence of this trying to start against a previously created persistent store tries to re-create the DB again and fails.

By re-ordering the commands like so it works correctly (i.e. saving the configuration prior to invoke the shutdown of Vertica):

 # Vertica should be shut down properly
 function shut_down() {
-  echo "Shutting Down"
-  vertica_proper_shutdown
   echo 'Saving configuration'
   mkdir -p ${VERTICADATA}/config
   /bin/cp /opt/vertica/config/admintools.conf ${VERTICADATA}/config/admintools.conf
+  echo "Shutting Down"
+  vertica_proper_shutdown
   echo 'Stopping loop'
   STOP_LOOP="true"
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions