From 2035bcd40b17832439df0a1eb28403b99a71b74f Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 4 May 2009 16:05:22 -0400 Subject: Module signing and verification using a separate file for the module signature. --- stap-find-or-start-server | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'stap-find-or-start-server') diff --git a/stap-find-or-start-server b/stap-find-or-start-server index 97e7caca..131133ef 100755 --- a/stap-find-or-start-server +++ b/stap-find-or-start-server @@ -10,20 +10,18 @@ # later version. # This script attempts to find a systemtap server. If one is found, it -# echoes 0 and exits with 0. +# echoes 0. # # Otherwise, it attempts to start a server. If succesful, it echoes the -# process id and exits with 0. +# process id. # -# Otherwise, it echoes -1 and exits with 1 +# Otherwise, it echoes -1 -# INSTALL-HOOK These settings work for running the client from the source tree -# INSTALL-HOOK using the dejagnu test harness and will be overridden at install -# INSTALL-HOOK time. -exec_prefix= +# Initialize the environment +. `dirname $0`/stap-env # Is there a server available? -${exec_prefix}stap-find-servers >/dev/null 2>&1 && echo 0 && exit 0 +${stap_exec_prefix}stap-find-servers >/dev/null 2>&1 && echo 0 && exit 0 # No server available, try to start one. pid=`${exec_prefix}stap-start-server "$@"` @@ -34,4 +32,4 @@ fi # Could not find or start a server echo "-1" -exit 1 +exit 0 -- cgit From 647e92600d129f4c0b6e1f4b98ef4d65c609f827 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 5 May 2009 18:22:40 -0400 Subject: Typo in invocation of stap-start-server --- stap-find-or-start-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stap-find-or-start-server') diff --git a/stap-find-or-start-server b/stap-find-or-start-server index 131133ef..a93b21fe 100755 --- a/stap-find-or-start-server +++ b/stap-find-or-start-server @@ -24,7 +24,7 @@ ${stap_exec_prefix}stap-find-servers >/dev/null 2>&1 && echo 0 && exit 0 # No server available, try to start one. -pid=`${exec_prefix}stap-start-server "$@"` +pid=`${stap_exec_prefix}stap-start-server "$@"` if test $? = 0; then echo $pid exit 0 -- cgit