view kill_gnb.sh @ 2:5a6050937cb9 draft

planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/genenotebook commit ec3c633a0751bb9e253bcd77fea425180c9a0014
author gga
date Fri, 14 Apr 2023 10:13:56 +0000
parents 22f22c3e81bf
children
line wrap: on
line source

#!/bin/bash

# Make sure everything is cleaned (including job queue)
sleep 5

# Print server log
echo ""
echo "--- 'genoboo run' stopped, printing logs (server side) ---"
cat ./gnb.log

# Kill GeneNoteBook
kill $GNB_PID

sleep 5

# Kill MongoDB
kill $(<"./mongo.pid")

sleep 5