.TH SHAREFILES 1
.SH NAME
sharefiles - start a listener to share files or export another 9p services
.SH SYNOPSIS
g/sharefiles servicename description port directory
.SH DESCRIPTION
sharefiles creates a service sharing the files at DIR using a listener on PORT. It creates an entry for this in /tmp/grid/svcout. The SERVICENAME and DESCRIPTION can be 'freely chosen' but it is a good idea to adhere to the semantic conventions of your grid. These text strings are given to the registry when an announcement is made, and other grid clients use these to find and attach your service. If you are using plan9 and have a correctly set node address using DESCRIPTION to store your public IP address is a bit unnecessary and you can provide other information in this slot. sharefiles DOES NOT make any announcements on its own, any fileshare to the grid will also need to be announced with g/regannounce. 
.SH SOURCE
/bin/g
.SH BUGS
Currently sharefiles assumes you wish to do public, non-authenticated filesharing to all grid clients. Support for choice of auth and encryption should be added.
