# Make sure that stap can find the server.
set use_server --use-server
- set res [catch { exec stap --list-servers=online,trusted,compatible >& $net_path/stap-list-servers.out } looksee]
- verbose -log "stap --list-servers returned: res==$res\n$looksee"
- set res [catch { exec grep "^ host" $net_path/stap-list-servers.out } looksee]
+ set res [catch { exec stap --list-servers=online,trusted,compatible >& stap-list-servers.out } looksee]
+ verbose -log "stap --list-servers returned: res==$res"
+ verbose -log $looksee[exec cat stap-list-servers.out]
+ set res [catch { exec grep "^ host" stap-list-servers.out } looksee]
verbose -log "grep for servers returned: res==$res\n$looksee"
+
if {$res != 0} then {
- verbose -log "Unable to automatically find a systemtap server -- check firewall settings for mDNS"
+ verbose -log "Unable to automatically find the systemtap server -- check firewall settings for mDNS"
# Try to discover the port the server is listening on from the server
# log.
set res [catch { exec /bin/cat [exec pwd]/server.log | awk "/^Systemtap Compile Server on port .* ready/ {print \$6}" } server_port]
exec touch $logfile
exec chmod 666 $logfile
+ # Start with fresh server certificates
+ exec rm -fr $env(SYSTEMTAP_DIR)/ssl
+
# Try to start the server.
set server_pid [exec env STAP_PR11197_OVERRIDE=1 env SYSTEMTAP_STAP=[exec which stap] stap-start-server --log=$logfile]
if { "$server_pid" == "" } then {
# Our server should now be trusted, separate from the previously discovered
# trusted servers.
-list_servers "List current trusted servers" trusted
+list_servers "List current trusted servers" online,trusted
array unset current_trusted_servers
array set current_trusted_servers [array get servers]
# Our server should be trusted again, separate from the previously discovered
# trusted servers.
-list_servers "List current trusted servers after reinstatement by ip address" trusted
+list_servers "List current trusted servers after reinstatement by ip address" online,trusted
array unset current_trusted_servers
array set current_trusted_servers [array get servers]