Commit 9e006fb8 authored by Pavel Vainerman's avatar Pavel Vainerman

(vmonit): добавил обработку --uniset-port

parent bcbc23f3
...@@ -25,11 +25,12 @@ print_usage() ...@@ -25,11 +25,12 @@ print_usage()
} }
#parse command line options #parse command line options
TEMP=`getopt -n $PROG -o h,d,c:,s: -l help,dump,confile:,watch_sec: -- "$@"` || exit 1 TEMP=`getopt -n $PROG -o h,d,c:,s: -l help,dump,confile:,watch_sec:,uniset-port: -- "$@"` || exit 1
eval set -- "$TEMP" eval set -- "$TEMP"
dump= dump=
confile= confile=
uport=
while :; do while :; do
case "$1" in case "$1" in
-h|--help) print_usage 0 -h|--help) print_usage 0
...@@ -45,6 +46,10 @@ while :; do ...@@ -45,6 +46,10 @@ while :; do
shift shift
confile="$1" confile="$1"
;; ;;
--uniset-port)
shift
uport="--uniset-port $1"
;;
--) shift; break --) shift; break
;; ;;
*) "unrecognized option: $1" *) "unrecognized option: $1"
...@@ -57,5 +62,5 @@ done ...@@ -57,5 +62,5 @@ done
[ -n "$confile" ] && confile="--confile $confile" [ -n "$confile" ] && confile="--confile $confile"
[ -z "$dump" ] && $WATCH -n $WATCH_SEC uniset2-admin $confile --oinfo $* [ -z "$dump" ] && $WATCH -n $WATCH_SEC uniset2-admin $confile --oinfo $* -- $uport
[ -n "$dump" ] && uniset2-admin $confile --oinfo $* [ -n "$dump" ] && uniset2-admin $confile --oinfo $* -- $uport
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment