Files
steampipe/tests/manual_testing/service/start-kill.sh

14 lines
497 B
Bash
Executable File

for i in {1..10}; do
echo "############################################################### STARTING"
STEAMPIPE_LOG=trace steampipe service start
ps -ef | grep steampipe
STEAMPIPE_LOG=trace steampipe query "select pg_sleep(10)" &
echo "############################################################### KILLING"
pkill -9 steampipe
ps -ef | grep steampipe
pkill -9 postgres
ps -ef | grep steampipe
echo "############################################################### DONE"
done