diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2010-01-15 03:05:38 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2010-01-15 03:44:53 -0500 |
commit | 9e6bf24eef9d73afbccf9d46fa85a27587d6443b (patch) | |
tree | 781079fcd426ad067d10325322fa4e224e90daf1 | |
parent | 4b9b5e8597daa65325756b18fcb87b71c60b26aa (diff) | |
download | systemtap-steved-9e6bf24eef9d73afbccf9d46fa85a27587d6443b.tar.gz systemtap-steved-9e6bf24eef9d73afbccf9d46fa85a27587d6443b.tar.xz systemtap-steved-9e6bf24eef9d73afbccf9d46fa85a27587d6443b.zip |
server: log controlling pid
* stap-serverd (initialization): Log startup pid.
-rwxr-xr-x | stap-serverd | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stap-serverd b/stap-serverd index f3df884d..4d8a10ce 100755 --- a/stap-serverd +++ b/stap-serverd @@ -38,6 +38,8 @@ function initialization { # Parse the arguments parse_options "$@" + echo ===== compile server pid $$ started >> $logfile + # What port will we listen on? test "X$port" = "X" && port=$((1024+$RANDOM%64000)) while netstat -atn | awk '{print $4}' | cut -f2 -d: | egrep -q "^$port\$"; |