source: trunk/debathena/debathena/larvnet/debian/larvnet-wrapper @ 23126

Revision 23126, 266 bytes checked in by ghudson, 16 years ago (diff)
Add larvnet client-side monitoring package.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3servers=$(hesinfo larvnet sloc)
4port=49153 # aka "larvnet"
5hostname=$(hostname --fqdn)
6arch=$(machtype -c)
7set_busy() {
8  for s in $servers; do
9    printf "%d%s\0%s\0" "$1" "$hostname" "$arch" | nc -q0 -u "$s" "$port"
10  done
11}
12
13set_busy 1
14"$@"
15set_busy 0
Note: See TracBrowser for help on using the repository browser.