code: 9ferno

ref: e81c54ba2ecc673a4d5f8aed0e9b52841fe07b0d
dir: /dis/svc/registry/

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?