forked from Spark/ssm-services
dlkjflkds
This commit is contained in:
parent
3a9002ac0d
commit
f5416ac738
|
@ -6,7 +6,7 @@ service_command='/usr/bin/cjdroute'
|
||||||
|
|
||||||
cjdroute_config='/etc/cjdroute.conf'
|
cjdroute_config='/etc/cjdroute.conf'
|
||||||
|
|
||||||
cjdroute_admin_port='11234'
|
cjdroute_listen_port='11234'
|
||||||
|
|
||||||
cjdroute.check_tun_module() {
|
cjdroute.check_tun_module() {
|
||||||
[[ -e '/dev/net/tun' ]] || {
|
[[ -e '/dev/net/tun' ]] || {
|
||||||
|
@ -18,7 +18,7 @@ cjdroute.check_tun_module() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_pid() {
|
get_pid() {
|
||||||
lsof -i :"$cjdroute_admin_port" | tail -1 | cut -d ' ' -f 2
|
lsof -i :"$cjdroute_listen_port" | tail -1 | cut -d ' ' -f 2
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user