* v4server.1/access.exp: start kadmin by cd'ing to the directory
authorBarry Jaspan <bjaspan@mit.edu>
Mon, 21 Oct 1996 21:24:56 +0000 (21:24 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Mon, 21 Oct 1996 21:24:56 +0000 (21:24 +0000)
  first, so ps can find the process

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9228 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v4server/unit-test/v4server.1/access.exp

index f46b960b8ce3f72b70ada297daa9985498d8d8f8..57ec5040b562b191016270e13940842c211a6a38 100644 (file)
@@ -17,7 +17,7 @@ proc kill_admin_server {} {
 }
 
 proc start_admin_server {} {
-    global ovsec_adm_server sleep env
+    global ovsec_adm_server_path ovsec_adm_server_name sleep env
 
     set max_tries 60
 
@@ -26,15 +26,15 @@ proc start_admin_server {} {
            exec $sleep 5
            verbose "$ovsec_adm_server couldn't bind; retrying ($num_tries so far)"
        }
-       if {[catch "exec $ovsec_adm_server" msg]} {
+       if {[catch "system {cd $ovsec_adm_server_path; exec $ovsec_adm_server_name}" msg]} {
            if {[regexp {Address already in use} $msg]} {
                continue
            }
-           fail "starting $ovsec_adm_server: $msg"
+           fail "starting $ovsec_adm_server_name: $msg"
        }
        return
     }
-    fail "starting $ovsec_adm_server: $msg"
+    fail "starting $ovsec_adm_server_name: $msg"
 }
        
 proc remove_changepw_perms {} {