code: 9ferno

ref: 600bbfe4aaa9ad0f73d8d73eef1b7670e5f7d3a3
dir: /dis/svc/auth/

View raw version
#!/dis/sh.dis -n
load std
or {ftest -e /net/dns} {ftest -e /env/emuhost} {ndb/dns}
or {ftest -e /net/cs} {ndb/cs}
or {ftest -f /keydb/signerkey} {echo 'auth: need to use createsignerkey(8)' >[1=2]; raise nosignerkey}
or {ftest -f /keydb/keys} {echo 'auth: need to create /keydb/keys' >[1=2]; raise nokeys}
and {auth/keyfs} {
	listen -v -t -A 'tcp!*!inflogin' {auth/logind&}
	listen -v -t -A 'tcp!*!infkey' {auth/keysrv&}
	listen -v -t -A 'tcp!*!infsigner' {auth/signer&}
	listen -v -t -A 'tcp!*!infcsigner' {auth/countersigner&}
}
# run svc/registry separately if desired