Skip to content
Snippets Groups Projects
Commit f7a265ed authored by Marcin's avatar Marcin
Browse files

restore removed exec

exec is required to correctly handle signals by hivemind
python code, without exec (when there is no additional processes between
hivemind and linux)  signals are not delivered to hivemind

exec was removed wit commit: 1751bc56
parent f4c86061
No related branches found
No related tags found
No related merge requests found
......@@ -66,10 +66,10 @@ run_hive() {
source /home/hivemind/.hivemind-venv/bin/activate
if [[ -n "$LOG_PATH" ]]; then
log "run_hive" "Starting Hivemind with log $LOG_PATH"
hive "${HIVEMIND_ARGS[@]}" --database-url="${db_url}" > >( tee -i "$LOG_PATH" ) 2>&1
exec hive "${HIVEMIND_ARGS[@]}" --database-url="${db_url}" > >( tee -i "$LOG_PATH" ) 2>&1
else
log "run_hive" "Starting Hivemind..."
hive "${HIVEMIND_ARGS[@]}" --database-url="${db_url}"
exec hive "${HIVEMIND_ARGS[@]}" --database-url="${db_url}"
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment