added a script to serve/deploy with 9pserve
This commit is contained in:
parent
4fab56e77f
commit
2227876138
1 changed files with 18 additions and 0 deletions
18
xrxs-srv.sh
Executable file
18
xrxs-srv.sh
Executable 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
|
Loading…
Reference in a new issue