summaryrefslogtreecommitdiffstats
path: root/stap-serverd
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2008-07-08 14:22:11 -0400
committerDave Brolley <brolley@redhat.com>2008-07-08 14:22:11 -0400
commitb7278cda1ffbe3f1e711adb40577ad12f3527260 (patch)
tree9957df6965fac4cee1d2444745029ce378e6e461 /stap-serverd
parentff7b8b4a8fbcba5e78e72617753fd33f6f3ebc07 (diff)
downloadsystemtap-steved-b7278cda1ffbe3f1e711adb40577ad12f3527260.tar.gz
systemtap-steved-b7278cda1ffbe3f1e711adb40577ad12f3527260.tar.xz
systemtap-steved-b7278cda1ffbe3f1e711adb40577ad12f3527260.zip
Use `uname -rvm` for checking system compatibility. Generate
a finale response from the server to allow for error checking.
Diffstat (limited to 'stap-serverd')
-rwxr-xr-xstap-serverd5
1 files changed, 2 insertions, 3 deletions
diff --git a/stap-serverd b/stap-serverd
index 2c0743c0..eaaeda00 100755
--- a/stap-serverd
+++ b/stap-serverd
@@ -34,13 +34,12 @@ function initialization {
function advertise_presence {
# Build up a string representing our server's properties.
# TODO: this needs fleshing out.
-
- local sysinfo=`uname -r`
+ local sysinfo=`uname -rvm`
local txt="$sysinfo"
# Call avahi-publish-service to advertise our presence.
avahi-publish-service "Systemtap Compile Server on `uname -n`" \
- $avahi_type $port $txt > /dev/null 2>&1 &
+ $avahi_type $port "$txt" > /dev/null 2>&1 &
echo "Systemtap Compile Server on `uname -n` listening on port $port"
}