summaryrefslogtreecommitdiff
path: root/test/stop_scorsh.sh
blob: 353b02773400ed16c2c57cab418975edb66e2530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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