added a script to serve/deploy with 9pserve

This commit is contained in:
Iris Lightshard 2021-08-03 23:21:14 -06:00
parent 4fab56e77f
commit 2227876138
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

18
xrxs-srv.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
PORT=5460
case $1 in
start)
./xrxs -s xrxs & sleep 1
9pserve -c unix!/tmp/ns.$(whoami).\:0/xrxs tcp!0.0.0.0!${PORT} &
;;
stop)
killall xrxs
;;
*)
echo "$0 start|stop"
echo " start: run the xrxs service in the background"
echo " stop: terminates xrxs services"
;;
esac