From 33b7c33ab447a0463e414c6cf8f9a2cd2d047a20 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 9 Aug 2017 21:29:45 +0100 Subject: added more tests about basic scorsh setup --- test/stop_scorsh.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 test/stop_scorsh.sh (limited to 'test/stop_scorsh.sh') diff --git a/test/stop_scorsh.sh b/test/stop_scorsh.sh new file mode 100755 index 0000000..353b027 --- /dev/null +++ b/test/stop_scorsh.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +. ./scorsh_functions + +## is the daemon running? +cd ${SCORSH_APP} +is_running=$(ps $(cat scorsh.pid) | grep -c scorshd ) +cd - >/dev/null +check "[ \"${is_running}\" = \"1\" ]" $0 "is_scorshd_running" + + +## stop the scorsh daemon +cd ${SCORSH_APP} +kill -15 $(cat scorsh.pid) +ret=$? +rm scorsh.pid +cd - >/dev/null +check "[ $ret -eq 0 ]" $0 "" + +return_results -- cgit v1.2.3