code: 9ferno

ref: 44ce0097b612a1fefd754065bdf8d9d2e5ef60c8
dir: /appl/svc/registry.sh/

View raw version
#!/dis/sh.dis -n
load std
or {ftest -f /mnt/registry/new} {
	db=()
	and {ftest -f /lib/ndb/registry} {db=(-f /lib/ndb/registry)}
	mount -A -c {ndb/registry $db} /mnt/registry
}
listen -v 'tcp!*!registry' {export /mnt/registry&}	# -n?