tweak server to delete socket when stopping

This commit is contained in:
Iris Lightshard 2021-10-13 09:48:33 -06:00
parent 7ef7630c2c
commit 603c9158a3
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -5,10 +5,11 @@ 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} &
9pserve -c unix!/tmp/ns.$(whoami).${DISPLAY}/xrxs tcp!0.0.0.0!${PORT} &
;;
stop)
killall xrxs
rm /tmp/ns.$(whoami).${DISPLAY}/xrxs
;;
*)
echo "$0 start|stop"