code: 9ferno

Download patch

ref: 3e5c13c337cf5b7679a924a1890a0719108c9f0f
parent: 8767dca5bd4a61212cf2099673f6445eabd4dc4b
author: 9ferno <gophone2015@gmail.com>
date: Mon Sep 13 14:52:24 EDT 2021

script to start emu in daemon mode

start emu in daemon mode to run the inferno services
Ideally, emu -d /dis/lib/svc.dis should be used.
But, it is easier to code it in shell. Hence, the existence of this.

--- /dev/null
+++ b/lib/sh/daemon
@@ -1,0 +1,21 @@
+#!/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
+
+svc/net
+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
+sh -l # for a shell prompt