-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathreload
executable file
·36 lines (34 loc) · 1.19 KB
/
reload
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
cd ~/pinky && luarocks make --local # Install rocks
lunit ./pinky_testcase.lua
cd ~/nginx-accelerator/
ln -s ~/pinky/*.lua ./ngx_openresty/luajit/share/lua/5.1/ 2>/dev/null
pkill -9 nginx 2>/dev/null
./nginx/start
tail -f nginx/logs/error* &
echo "----------- disk"
curl http://localhost:44444/pinky/disk 2>/dev/null|tr "|" "\n"
echo "----------- memfree"
curl http://localhost:44444/pinky/memfree
echo "----------- net"
curl http://localhost:44444/pinky/net
echo "----------- nginx:"
curl http://localhost:44444/pinky/process/nginx:
echo "----------- ssh port"
curl http://localhost:44444/pinky/port/80
echo "----------- 44444 port"
curl http://localhost:44444/pinky/port/44444
echo "----------- rvm"
curl http://localhost:44444/pinky/rvm
echo "------------rvm/1.9.3"
curl http://localhost:44444/pinky/rvm/ruby-1.9.3-p392
echo "----------- rvm/1.9.3/bundler"
curl http://localhost:44444/pinky/rvm/ruby-1.9.3-p392/bundler
echo "----------- disk"
curl http://localhost:44444/pinky/disk/
echo "----------- port"
curl http://localhost:44444/pinky/port/
echo "----------- port1"
curl http://localhost:44444/pinky/port/localhost
echo "----------- port2"
curl http://localhost:44444/pinky/port/localhost/80