code: 9ferno

ref: d9761c518aa85d439cac436fca7361dc1f096669
dir: /lib/sh/daemon/

View raw version
#!/dis/sh.dis -n
# shell script to cause emu to run on the host as a server (daemon mode)
# man emuinit talks about emu -d /dis/lib/svc.dis to do this
#	but, I could not find svc.dis in the source
#	and this is an attempt to replicate it without using limbo
# emu /lib/sh/daemon

load std

# the following scripts seem more robust than this
# run /lib/sh/srv

/dis/svc/net
/dis/svc/auth

# until I sort out the authentication
#	but this is killing /mnt/keys, so do not start it here
styxlisten -A 'tcp!*!17001' export /

ls -l /mnt/keys
netstat
sh -l # for a shell prompt