tweak server to delete socket when stopping
This commit is contained in:
parent
7ef7630c2c
commit
603c9158a3
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue