.TH GETSVC 1
.SH NAME
getsvc - connect to grid services by name
.SH SYNOPSIS
g/getsvc servicename
.SH DESCRIPTION
getsvc attempts to locate and mount the named service using the stored information in /tmp/grid/info. getservice searches the index for a match to the given servicename, then attempts to mount it using the information in the registry. If the initial dialstring fails, it will search through the remainder of the information in the registry service entry looking for an IP address to construct a dialstring with. If it cannot find a match in the cached service index, it calls huntservice SERVICENAME to attempt to locate the service in all registry indexes visible in its namespace. When the service is found, it is mounted at /g/SERVICENAME/s and its information is added to /tmp/grid/svcin.
.SH SOURCE
/bin/g
.SH BUGS
The search algorithm is deliberately dumb and liberal in finding matches - it simply greps the regbucket for everything that matches, then uses tail to find the most recently added match.
