code: 9ferno

ref: c44aabebe17d7bc8e6173e2b3d1a6e7b4f5edaf5
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?