signed-commit remote shell (see also https://github.com/dyne/scorsh)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scorsh/test/stop_scorsh.sh

20 lines
363 B

#!/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