Skip to content

forked temporary mongod not shutdown if initdb failing script #464

Open
@ollofx

Description

@ollofx

when any script in /docker-entrypoint-initdb.d/* fails the whole docker-entrypoint.sh fails but without shutting down the temporary forked mongod

"${mongodHackedArgs[@]}" --fork

	function shutdown {
	     "${mongodHackedArgs[@]}" --shutdown
	      rm -f "$pidfile"
	}
        # hook showtdown
        trap shutdown EXIT

then

"${mongodHackedArgs[@]}" --shutdown

	rm -f "$pidfile"
        # reset shutdown
	trap - EXIT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions