It's the admin port. Let's call it properly

This commit is contained in:
Jack L. Frost 2014-04-05 23:59:52 +04:00
parent f5416ac738
commit 64a5f40850
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ service_command='/usr/bin/cjdroute'
cjdroute_config='/etc/cjdroute.conf'
cjdroute_listen_port='11234'
cjdroute_admin_port='11234'
cjdroute.check_tun_module() {
[[ -e '/dev/net/tun' ]] || {
@ -18,7 +18,7 @@ cjdroute.check_tun_module() {
}
get_pid() {
lsof -i :"$cjdroute_listen_port" | tail -1 | cut -d ' ' -f 2
lsof -i :"$cjdroute_admin_port" | tail -1 | cut -d ' ' -f 2
}
start() {